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.

没有正确的解决方案

其他提示

You should just be able to do this:

grant select on dbo.myview to myuser
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top