Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Mirror - Database Permissions Expand / Collapse
Author
Message
Posted Monday, October 14, 2013 4:06 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 8:02 AM
Points: 48, Visits: 361
I need to add a new Windows Login and database user with db_datareader permissions on 2 of of my mirrored databases.

I can obviously add them to the Principal databases easily but how is this achieved on the restoring database?

When I go to User Mapping in SSMS the restoring databases are not available. Do I need to fail the database over then apply the Permissions? Will they be orphaned?

cheers
Post #1504386
Posted Monday, October 14, 2013 4:35 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Yesterday @ 9:59 AM
Points: 304, Visits: 574
Providing the windows login is created on both the principal and the seconday then upon failover the should work. There is no dependancy on the SID with windows logins unlike SQL Logins, so your user will not be orphaned.

But if you want the SIDS to be the same on both to be extra cautious you can script the login from the primary and recreate it on the secondary.


MCITP SQL 2005, MCSA SQL 2012
Post #1504389
Posted Monday, October 14, 2013 4:37 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 8:02 AM
Points: 48, Visits: 361
Excellent - thanks for you response
Post #1504390
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse