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,422 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,698 reads

Blogs

T-SQL Tuesday Retrospective #015: Automation

By

In February 2011, Pat Wright invited us to talk about Automation: So the topic...

Daily Coping 12 May 2021

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Updated Pluralsight Course – Managing the Kubernetes API Server and Pods

By

My updated course “Managing the Kubernetes API Server and Pods” in now available on Pluralsight here! If...

Read the latest Blogs

Forums

SQL 2012 Standard - Index highly fragmented

By mjbc

Hi there, Complete newb.  Need some guidance. Running SQL 2012, running INFOR ERP.  Indexes...

Manual tasks in SSIS design

By Roust_m

Hi, I am getting CSV files with hundreds of columns many of which have...

Loading a csv file into sql server table

By Roust_m

Hi, I've created a simple dataflow with flat file source and sql server destination....

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers