One thought on “Database Mirroring – Login failure after role switch

  1. BWK says:

    I’m a little confused. I see that running this on the principal server (do you run it from the Master database?) generates the queries to create the logins on the mirror server. But when do you run those queries? And what about the errors you get because the databases either don’t exist or are unavailable?

    Also, I found a couple typos above. I had to convert all ” (double quotes) to ” (two single quotes) and of course, change all the curly quotes to straight quotes.

Leave a comment