|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, May 23, 2013 7:34 AM
Points: 189,
Visits: 864
|
|
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
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 3:21 PM
Points: 5,317,
Visits: 11,307
|
|
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
---------------------------------------------------------------------
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Yesterday @ 9:51 AM
Points: 298,
Visits: 1,323
|
|
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.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, May 29, 2013 9:26 AM
Points: 138,
Visits: 511
|
|
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 ' '.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Yesterday @ 3:21 PM
Points: 5,317,
Visits: 11,307
|
|
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.
---------------------------------------------------------------------
|
|
|
|