Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 truncate log

Author  Topic 

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-13 : 21:27:51
How to setup a sql 2005 maint plan for truncate log ?
Is it possible or do need to create a job and and in job step mention below
Backup log DatabaseName with truncate_only


How do i issue the checkpoint?
...please let me know?

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-15 : 01:15:33
No, don't do truncate if db is not in simple recovery model. Just backup db and log in the plan.
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-15 : 02:31:57
Lets say we are doing DB backup and Tlog backup, but how to truncate the log??
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-15 : 02:33:48
You mean reduce log file size? How big is it?
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2007-12-15 : 02:37:25
705,000 KB
How would I truncate log and how would I reduce the size of log?
We are into 24x7 production environment
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-15 : 03:09:03
You can shrink it, but better to leave it because shrinking log is performance killer.
Go to Top of Page
   

- Advertisement -