Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Scripting out permission for database? Expand / Collapse
Author
Message
Posted Friday, November 16, 2012 6:36 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, July 15, 2014 3:49 PM
Points: 191, Visits: 891
See the following url for an Instance Security Audit script I wrote. It prints in columnar format, and you can change one variable to make it print the actual assignment statements for the permissions. The posting explains a little more.

Hope it helps.

http://www.sqlservercentral.com/Forums/Topic1251262-146-1.aspx?Update=1
Post #1385660
Posted Friday, November 16, 2012 7:27 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 3:15 PM
Points: 5,976, Visits: 12,886
vikingDBA (11/16/2012)
See the following url for an Instance Security Audit script I wrote. It prints in columnar format, and you can change one variable to make it print the actual assignment statements for the permissions. The posting explains a little more.

Hope it helps.

http://www.sqlservercentral.com/Forums/Topic1251262-146-1.aspx?Update=1


If you want to share this you would be better posting it in the scripts section


---------------------------------------------------------------------

Post #1385701
Posted Friday, November 16, 2012 11:28 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Sunday, September 29, 2013 1:24 AM
Points: 429, Visits: 1,721
You could try:

Right-click on db name, select Tasks -> Generate Scripts

There you have a number of scripting options including scripting out Users, Roles, and Schemas. There is an advanced options tab that will give you even more choices of what to put in the script output.

 
Post #1385804
Posted Thursday, November 29, 2012 12:38 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, June 16, 2014 10:44 AM
Points: 153, Visits: 583
hey I try to execute (Reverse-Engineer Database Permissions (2005 up)) http://www.sqlservercentral.com/scripts/Permissions/76450/

I am getting error.

Msg 102, Level 15, State 1, Procedure usp_get_object_permissions, Line 44
Incorrect syntax near ' '.
Msg 102, Level 15, State 1, Procedure usp_get_object_permissions, Line 50
Incorrect syntax near ' '.
Post #1390788
Posted Friday, November 30, 2012 3:35 AM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 3:15 PM
Points: 5,976, Visits: 12,886
looks like some sort of problem with the copy\paste from the site.

click on the error message in the results pane and it will take you to the actual error in the code. Its purely syntax so some character has been misinterpreted.

Remember to go through the discussion on the script to get an improvement to part of it.


---------------------------------------------------------------------

Post #1391166
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse