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 2008 Forums
 SQL Server Administration (2008)
 Should a mirrored DB mirror both users & logins

Author  Topic 

mattt
Posting Yak Master

194 Posts

Posted - 2011-02-02 : 09:06:46
Hi,

Got a mirrored DB which seems to be replicated it's actual data and stored procedures and such as expected, but it doesn't seem to mirror users. Should it? Or do they have to be created manually on each server separately?

Cheers,
Matt

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-02-02 : 11:25:52
You have to create the logins on the mirrored server, but mirroring will take care of the users. In order for a user to work, it must have a login first.

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

Subscribe to my blog
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2011-02-02 : 12:03:36
Just make sure, when you create the logins on the mirror, you create them with the same SID as on the principal. Otherwise the logins won't match up with the users.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-02-02 : 12:54:09
Here's a blog article I have regarding this topic: http://weblogs.sqlteam.com/tarad/archive/2008/06/24/How-to-transfer-SQL-logins-between-SQL-Server-2005-instances.aspx

And yes it works for 2008 too. It ensures the sids are in sync as well as the passwords.

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 -