Domanda

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?

Nessuna soluzione corretta

Altri suggerimenti

exec sp_addrolemember db_datareader, <User-Defined Role>; 

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top