exec sp_dboption foo, 'trunc. log on chkpt', 'true'
checkpoint
This will truncate the inactive part of the transaction log once the checkpoint completes. However understand what you're doing before altering dboptions -- look in BOL under sp_dboption.
Thanks guys...I just have a stored proc here that runs a TON of updates, and it always crashes because my transaction log gets full, so I wanted to be able to truncate it, periodically throughout the stored proc.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.