Question

I want to create a view of a large accounts database and give access to this view to a specific user. However, I don't want that user to be able to access the underlying database and tables.

So, a view called 'db1.dbo.myview' which contains 'select acctid, onstop from accounts.dbo.customers'. Allow the user to select from db1.dbo.myview, but not anything from the 'accounts' database.

Is this possible?

From searching on the web it seems I need to create a stored procedure, sign it with a certificate, create users from the certificate, etc. A whole nightmare.

No correct solution

OTHER TIPS

You should just be able to do this:

grant select on dbo.myview to myuser
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top