x

Database Mirroring Transaction Log Back Up

Hello.

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

Roo gravatar image

Roo
1 1 1 1

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

1 answer: sort newest

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

Jason Cumberland gravatar image

Jason Cumberland
507 2

(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.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x1950
x48

asked: Feb 25, 2010 at 04:18 PM

Seen: 1581 times

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