Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

A place to share commonly used scripts for SQL Server Database Administrators.

Moderators

SQL Server DBA Scripts

Create User Define Role and Give Access

Jun 7 2012 12:00AM by Nirav Gandhi   

1)How to Create User Define Role? 2)How to Give Particular Access to Role?

1) Create Read_Only Role And Give the Access of Viewing any Definition.

USE master
GO
Create role Read_Only
GRANT VIEW ANY DEFINITION TO Read_Only
USE master
GO
Revoke VIEW ANY DEFINITION TO Read_Only

2) Create Role and Give Execute Role

Create role DB_Execute
Grant Execute     to DB_Execute
Revoke Execute  to DB_Execute

3) Create Role And Give Alter Role

Create role DB_Alter
Grant Alter     to DB_Alter
Revoke Execute  to DB_Alter

4) Create Role And Give Insert,Update,Delete Role

Create Role DB_Write_Database
Grant Insert,Update,Delete to DB_Write_Database
Revoke Insert,Update,Delete to DB_Write_Database

5)If you want to Create Read-Only Definition to All DB_User expect Admin Role.

USE master
GO
GRANT VIEW ANY DEFINITION TO PUBLIC
USE master
GO
Revoke View Any Definition to Public


Nirav Gandhi
38 · 5% · 1503
2
 
0
Worked
 
0
Failed
 
0
Lifesaver
 
0
Production
 
0
Unwise



Submit

Your Comment


Sign Up or Login to post a comment.

"Create User Define Role and Give Access" rated 5 out of 5 by 2 readers
Create User Define Role and Give Access , 5.0 out of 5 based on 2 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]