Script Login Roles Permissions in all DBs _SQL2005

Usage -Populate @list variable below with account(s),comma delimited list to script. -Save output to recreate:Login,Default DB,Server Roles,DB Access,DB Roles,DB Object Permissions. -- NOTE: -Stored procedures are created in Master, but are deleted -to limit by database see section /*Get a table with dbs where login has access*/ and change the where clause -to script all […]

4.75 (8)

2007-02-01 (first published: )

4,414 reads

Script Login Roles Permissions in all DBSs

Populate @list variable with account(s) to script. Save output to recreate:Login, Password,Default DB,Server Roles,DB Access,DB Roles,DB Object PermissionsDB 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

2006-01-19 (first published: )

1,662 reads

Blogs

My Organizer's Notes and Goodbye after #SQLSatBR 2019

By

Some 2019 tips for other SQLSat organizers from my last year as lead organizer...

Query Store stores dates as UTC

By

One of the powerful aspects of Query Store is the ability to directly query...

SpeedPASS Printing

By

Based on the great post and script from Wayne Sheffield I decided to try...

Read the latest Blogs

Forums

Let’s Start with Architecture

By pamelamooney1966

Comments posted to this topic are about the item Let’s Start with Architecture

Database Auditing

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Database Auditing

Don't Get On This Page

By Steve Jones - SSC Editor

Comments posted to this topic are about the item Don't Get On This Page

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers