Chad
Chad

Reputation: 24689

SQL Server database roles

As I understand it, Users assigned to the db_datareader role have the rights to read all tables in the database and those assigned to db_datawriter can update all tables.

Is there a database role that gives a user rights to execute all stored procedures?

Upvotes: 13

Views: 8680

Answers (2)

gbn
gbn

Reputation: 432261

GRANT EXEC ON SCHEMA::dbo

You can substitue dbo for your particular setup

Upvotes: 0

Joe Stefanelli
Joe Stefanelli

Reputation: 135808

You have to roll your own.

CREATE ROLE db_executor;
GRANT EXECUTE TO db_executor;
EXEC sp_addrolemember 'db_executor', 'username';

Upvotes: 17

Related Questions