Database mirroring–survival kit #3

Now it gets a little bit tricky, because how will you handle databasemirroring and replication together?

Let’s imagine a scenario, where we want to replicate a table from a mirrored database to another database. If we failover, then replication should continue to work. Is that possible?

Yes, and it is fairly easy to setup, what you need to do is:

  1. Setup the mirroring.
  2. Setup a distributor and publication on the current principal server(think about having the distributor on its own server).
  3. On the mirrorserver setup distribution and use the same distributor as on the current principal server.
  4. Add both the distributor and mirrorserver to the replication monitor.
  5. Set –PublisherFailoverPartner property for the agents (in my demo it will be the snapshotagent and the log reader agent.

<—Go to step 2      Go to step 4—>

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *