Script – Assign Permissions To All Objects

Here is a script on GitHub that will assign access permissions to all objects in a database to a specified database principal (User, Role, etc.). The script will check to see if the principal already has permission to an object before granting. For a user defined table, this includes select, delete, insert and update permissions. For stored procedures, it would be execute permission.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: