truncate sql log

First off, You CANNOT REVERT this command, so be sure you want to truncate the log!
THE QUERY
Instructions: Just replace with your DB

BACKUP LOG  WITH TRUNCATE_ONLY 
DBCC SHRINKDATABASE( '', TRUNCATEONLY)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.