Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Keeping roles and security in sync mirrored DB's

Author  Topic 

kash786
Starting Member

1 Post

Posted - 2013-06-12 : 03:59:01
Hi

What is best way to keep roles and security in sync on mirrored systems? (both Instance and DB logins)

What do people have set-up to ensure that in the event of a disaster, users can log into the switched DB?

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-06-14 : 14:25:52
Anytime I create a new login on the principal server, I create it with the same sid on the mirror server. For systems where the application creates SQL logins, I use a script like this to keep them in sync: http://weblogs.sqlteam.com/tarad/archive/2008/06/24/How-to-transfer-SQL-logins-between-SQL-Server-2005-instances.aspx

Anything else done at the instance level is done manually, such as jobs, etc. Bill Graziano, owner of SQLTeam, has a codeplex utility that helps with this: http://scriptsqlconfig.codeplex.com/

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -