Controlling / Truncating Log Files?

Filed under: Backup and Restore, I'm a Newbie — SQL Stan at 9:54 am on Thursday, July 26, 2007

Q: My application generates log files rapidly - how do i truncate the size of the log in SQL server without affecting the data files. this will help me to space in the hard disk

SQL Stan says: If the application is not mission critical, then run the database in SIMPLE recovery mode. This will automatically truncate the log every minute or so. If the application is critical and you need to be able to recover from a disaster, then use BACKUP to clear the log at regular intervals, say every 15 or 30 minutes.

Technorati Tags:
, ,


No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>