Database Mirroring Transaction Log Back Up


I am planning to set up database mirroring of my Live principal database in the next few days. However, after reading a few confusing articles on the web, I am not too sure about the transaction Log status of the Mirrored database.

So, please can somebody tell me that if I back up the transaction log file of the principal database (which will truncate the queries that have already been run, and sent to the mirror), will this also backup the log file on the Mirror database and truncate the queries that have already been applied to the mirror?

I am effectively trying to prevent the mirror transaction log file from growing too large and need to have a way of controlling its size.

Plus, is there a way estimating the size of the mirrored log whilst it is in the 'no recovery' state?

Thanks for all the help in advance it is much appreciated!!!!

more ▼

asked Feb 25, 2010 at 04:18 PM in Default

avatar image

1 1 1 1

(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

You can safely back up the log on the primary (and you have to or it will fill up) and it will not affect the mirror. The transactions are committed on the mirror as they are passed over the wire and not written to the transaction log. The mirror's transaction log size should remain constant until the database is recovered.

more ▼

answered Feb 25, 2010 at 08:06 PM

avatar image

Jason Cumberland
507 1 2 4

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Feb 25, 2010 at 04:18 PM

Seen: 1752 times

Last Updated: Feb 25, 2010 at 04:18 PM

Copyright 2018 Redgate Software. Privacy Policy