Re: Automate setting permissions to databases (SQL 2005)?
- From: "Andrew J. Kelly" <sqlmvpnooospam@xxxxxxxxxxxx>
- Date: Thu, 22 Jun 2006 20:17:05 -0400
Here is a bunch of links for issues in that area:
http://www.sqlservercentral.com/scripts/contributions/1598.asp Script
Roles and Permissions
http://vyaskn.tripod.com/moving_sql_server.htm Moving DBs
http://msdn2.microsoft.com/en-us/library/ms345408(en-US,SQL.90).aspx Moving
system dbs 2005
http://www.databasejournal.com/features/mssql/article.php/3379901 Moving
system DB's 2000
http://www.support.microsoft.com/?id=314546 Moving DB's between Servers
http://www.support.microsoft.com/?id=224071 Moving SQL Server Databases
to a New Location with Detach/Attach
http://www.support.microsoft.com/?id=221465 Using WITH MOVE in a Restore
http://www.sqlservercentral.com/columnists/cBunch/movingyouruserswiththeirdatabases.asp
Moving Users
http://www.support.microsoft.com/?id=246133 How To Transfer Logins and
Passwords Between SQL Servers
http://www.support.microsoft.com/?id=298897 Mapping Logins & SIDs after
a Restore
http://www.dbmaint.com/SyncSqlLogins.asp Utility to map logins to
users
http://www.support.microsoft.com/?id=168001 User Logon and/or Permission
Errors After Restoring Dump
http://www.support.microsoft.com/?id=240872 How to Resolve Permission
Issues When a Database Is Moved Between SQL Servers
http://www.sqlservercentral.com/scripts/scriptdetails.asp?scriptid=599
Restoring a .mdf
http://www.support.microsoft.com/?id=307775 Disaster Recovery Articles
for SQL Server
http://www.support.microsoft.com/?id=320125 Moving a Diagram
http://www.support.microsoft.com/?id=274463 Copy DB Wizard issues 2000
--
Andrew J. Kelly SQL MVP
"AdamM" <adam@xxxxxxxxxx> wrote in message
news:un9nntilGHA.1272@xxxxxxxxxxxxxxxxxxxxxxx
I set a long list of granular user database permissions with every
reinstall of my development database and I would like to automate this work
with a script instead of doing this manually in SQL Server Management
Studio.
Is there a security settings export to file option? Or maybe some script
samples that show how to set user permissions?
I saw this example, but it requires both old and new databases to be
running at once. I reinstall the same PC repeatedly so this doesn't work
for me:
http://www.sql-server-performance.com/bm_object_permission_scripts.asp
Thanks!
Adam
.
- References:
- Prev by Date: Re: Monitor SQL Statements
- Next by Date: Re: Brute Force Attack
- Previous by thread: Automate setting permissions to databases (SQL 2005)?
- Next by thread: Re: Deny Anything to sa Account in SQL Express?
- Index(es):
Relevant Pages
|