SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Grant permissions to a role

By Eugene Bereznuk,

Total article views: 684 | Views in the last 30 days: 11

A very simple script that will first create a role (if it does not exist yet) and then grant full permissions on tables, views and stored procedures to the newly created role. Of course, you can add any filtering (i.e. grant permissions only for tables beginning with "abc") or grant partial permissions (SELECT or DELETE only) for certain roles.

By Eugene Bereznuk,

Total article views: 684 | Views in the last 30 days: 11
Your response
 
 
Related Articles
SCRIPT

Grant Mass permissions

Create A role and grant it a permission on a DB Schemas.

FORUM

Grant Permission to database object

How to grant a permission?

SCRIPT

Grant permissions to objects

Grant permissions

SCRIPT

Grant Permission to Specific objects(e.g. SP's)

Grant permissions to specific objects in Database using dynamic SQL.

SCRIPT

Column Level Permissions

GRANT Column Level Permissions

 
Contribute

Free registration required...

To read the rest of this article, and access thousands of other articles, we ask you to register on the site and subscribe to our newsletters.

Login (existing users)

Login

Email:   Password:   Remember me: Forgotten your password?

Register (new users)

Register

Email:   Password:
Confirm:

Subscribing to our newsletters gets you:

  • ALL of our content (thousands of articles, scripts, and forum postings)
  • A daily newsletter (example)
  • A weekly news round up (example)
  • The opportunity to ask and answer questions in our forums
  • A daily Question of the Day to test and help you increase your knowledge of SQL Server.

Steve Jones
Editor, SQLServerCentral.com