Setting up database mirroring for disaster recovery in SQL Server

Tags:
Database mirroring
Disaster Recovery
High Availability
Microsoft SQL Server 2000
SQL Server 2005
I am a SQL Server DBA and in the process of upgrading our SQL Server 2000 to SQL Server 2005. I’ll be using database mirroring for the disaster recovery in SQL Server. One question I have is once I failover to the mirror server and use it as a principal for a couple of days, how do I make sure the original principal is up to date after I failback? Another question I have is once I set up database mirroring, can I switch between high-protection and high-performance modes?

Answer Wiki

Thanks. We'll let you know when a new response is added.

When you fail over to the mirror, once the primary server is back online SQL will automatically being feeding the transactions back. When you look at the databases in the UI it will say if it’s mirroring or synchronized. If it says that it is synchronized then there are no pending transactions to be sent.

You won’t be able to initiate the failback until all transactions have been replicated otherwise your databases will be out of sync. Think of mirroring like it’s log shipping as that’s basically what it is. The difference is that with Log Shipping you are backing up the logs on a schedule where with Mirroring you are moving the data in real time or near real time.

Yes you can change the safty mode from synchronous to asynchronous mode by using the ALTER DATABASE command.

ALTER DATABASE YourDatabase SET PARTNER SAFETY FULL
ALTER DATABASE YourDatabase SET PARTNER SAFETY OFF

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following