by Joe Havelick
4. March 2008 09:24
The following script will truncate eveything from the SQL transaction log, and shrink the file.
--Truncate the Transcation log
BACKUP LOG DatabaseName WITH NO_LOG
---Shrink the physical file with 10% reserve
DBCC SHRINKDATABASE (DatabaseName, 10)
cf152ad4-bd75-41ef-957c-35cd8f207f8d|2|5.0
Tags: sql
Tech Tips