Solved

sql 2005 db mirroring

Posted on 2006-11-13
5
385 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
  • 2
  • 2
5 Comments
 
LVL 142

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 142

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now