Grant select permission on all database to a user-defined server role

StackOverflow https://stackoverflow.com/questions/22162363

  •  19-10-2022
  •  | 
  •  

Вопрос

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?

Нет правильного решения

Другие советы

exec sp_addrolemember db_datareader, <User-Defined Role>; 

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top