Truncate Logfile SQL Server – Out Of Memory Error

Run this First:

BACKUP LOG DatabaseName WITH TRUNCATE_ONLY

Then Run this:

DBCC SHRINKDATABASE (DatabaseName)

Note: Should only be used on development machines..I believe, becasue will erase your log files

Leave a Reply