Solved

sql 2005 db mirroring

Posted on 2006-11-13
5
384 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

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
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.
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.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

705 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