Here's my scenario...
SQL Role
- Staff_User
Scheme
- People
Tables
People.Persons
People.PhoneNumbers
Views
People.vtPersons - The vtPersons view filters the data from the Persons table showing only that which belongs to the currently logged in user.
People.vtPhoneNumbers - The vtPhoneNumbers view filters the data from the PhoneNumbers table showing only that which belongs to the currently logged in user.
People.vwContactInformation - The vwContactInformation "View" combines the data from vtPersons and vtPhoneNumbers so it can be used as a query in a Crystal Report.
The Staff_User role has been granted "SELECT" permission to the vwContactInformation view and nothing else.
I am getting an error now saying that permission is denied to the object vtPhoneNumbers. Must I also grant "SELECT" permission to this view? From experience in another SCHEME I did NOT have to do this and everything worked well. But now I'm getting this error in a second SCHEME that I've created. Can anybody suggest what I have in the first scheme that allows the permissions to cascade to views, tables, functions etc that are called from the view made accessible to the role.
Thanks, Justin