Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I grant datareader to a sql role?

Is it possible to grant the datareader privileges to a SQL Server Database Role rather than a User?

like image 634
Rory Avatar asked Jun 10 '10 16:06

Rory


2 Answers

Using the GRANT command.

USE DBNAME;
GRANT SELECT TO RoleName;
GO
like image 82
Serapth Avatar answered Oct 03 '22 06:10

Serapth


You could add your (user defined) database role to db_datareader as a role member, using the UI.

like image 23
FvR Avatar answered Oct 03 '22 06:10

FvR