Question

Can I grant select permission on all database to a user-defined role? I create a user-defined server role, and add logins as members of it. I want these logins can view all databases and have select permission on all databases. how should I do?

Pas de solution correcte

Autres conseils

exec sp_addrolemember db_datareader, <User-Defined Role>; 

This is equivalent to granting SELECT on all tables in the DB.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top