Mirror - Database Permissions

  • 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

  • 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

  • Excellent - thanks for you response 😀

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply