Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Script Login Roles Permissions in all DBSs

By TDuffy,

Populate @list variable with account(s) to script. Save output to recreate:Login, Password,Default DB,Server Roles,DB Access,DB Roles,DB Object Permissions

DB level permissions are scripted in all databases.

Can recreate a single login, or accepts comma delimted list of logins.

NOTE:
Stored procedures are created in Master, but are deleted

Total article views: 1628 | Views in the last 30 days: 4
 
Related Articles
FORUM

logins

logins

FORUM

Logins

Delete logins

FORUM

Logins

Logins

FORUM

Login locked

Login locked

FORUM

user,login

user,login

 
Contribute