Question

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

Was it helpful?

Solution

Using the GRANT command.

USE DBNAME;
GRANT SELECT TO RoleName;
GO

OTHER TIPS

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top