문제

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