Solved

sql 2005 db mirroring

Posted on 2006-11-13
5
388 Views
Last Modified: 2009-07-29
Hi,
In sql 2005 mirroring, can I truncate the trans log? or which one that I can truncate principal or mirror?
0
Comment
Question by:motioneye
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 250 total points
ID: 17928543
you should NOT truncate the log in mirroring.
you can only run regular transaction log backups (which actually do the same in regards to the transaction log size)
0
 

Author Comment

by:motioneye
ID: 17928657
so is that means no any other way to truncate the trans log??? and will this backup log dbname with truncate_only will not work with mirroring???
0
 
LVL 28

Expert Comment

by:imran_fast
ID: 17928671
Agree with angelIII
Mirroring is dependent on the trasaction log so dont truncate them take regular backups.
0
 

Author Comment

by:motioneye
ID: 17928968
ok, if the trans log unallocated space getting bigger will backup log dbname with truncate_only  work if the shrinking command unable to shrink the unallocated space? is there any problem with mirroring db?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 17929165
>will backup log dbname with truncate_only work...
no. simply doing the regular backup (without the truncate_only) will keep the file size "constant", with reusing the space inside the file.
note however that the longer the distance between the backups, the bigger the file needs to be.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question