Unsolved

This post is more than 5 years old

2 Intern

 • 

360 Posts

2174

June 18th, 2007 00:00

How to truncate the MS SQL log in schedule backup

Dear All,

After I ran the lab, either Full backup or incremental backup may not truncate the transaction log.

Could you give any ideas to truncate the log in schedule backup?

Thanks in advance.

Dennis

2 Intern

 • 

360 Posts

June 18th, 2007 00:00

I reviewed the documents, it should truncate the log autometically.

Right?

4 Operator

 • 

14.3K Posts

June 18th, 2007 01:00

Have you checked some past threads? This question has arised few times if I remember correctly.

163 Posts

June 18th, 2007 09:00

What backup command are you using? Logfile trunking is skipped when -T or -G options are set.

56 Posts

June 19th, 2007 03:00

Hi,

I remember that backup doesn't affect the physical size of the log. If you want to shrink the physical size, you must use some sql database tools to do that.

2 Intern

 • 

360 Posts

June 19th, 2007 07:00

I do not use -T and -G options and the command is nsrsqlsv -a my_virtual_server.
The log size does not decrease after the backup job completed.

So I post this topic to discuss the backup job will truncate the log or not.

Dennis

4 Operator

 • 

14.3K Posts

June 19th, 2007 08:00

2 Intern

 • 

360 Posts

June 27th, 2007 07:00

Thanks for following info:

Deafult behavior in NMSQL 5.0 is that log truncation is only enabled with FULL backup. Additionally, NMSQL 5.0 only trucncates logs if the user explicitly specifies log truncation. So by default NMSQL 5.0 does not trucate logs. Therefore NMSQL 5.0 should never disrupt the log shipping environment unless user himself chooses to do log trucation.

So Full backup will not truncate logs by default?
How to specify log truncation? I can not find any thing in administration guide.

Best Regards,
Dennis
No Events found!

Top