Grant permission to only a view
26,432
Solution 1
USE DB1;
GRANT SELECT ON OBJECT:: View1 TO JohnDoe;
GO
Refer to GRANT Object Permissions for other examples of granting permission
Solution 2
Try this:
GRANT SELECT ON whatever_your_view_is_called TO bob_or_whatever_his_name_is
Author by
rpf
Hi everyone.... My name is rpf and I'm from Portugal, city of Oporto. I'm a software engineer. On a professional level I work with C # and MSSQL Server. For me the best programming languages are those who are object oriented...... Besides these, I love C :) To finhish, I'm a lover of all kind of tecnology.
Updated on July 09, 2022Comments
-
rpf almost 2 years
I have one user in my database, and I want to grant to him permission to read only one view, nothing more, no tables, nothing.
How can I do this?
Thanks a lot.
P.S.: I am using MS SQL Server 2005