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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Keeping roles and security in sync mirrored DB's
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 06/12/2013 :  03:59:01  Show Profile  Reply with Quote

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?


Almighty SQL Goddess

38200 Posts

Posted - 06/14/2013 :  14:25:52  Show Profile  Visit tkizer's Homepage  Reply with Quote
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:

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:

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000