Here is a quick but of SQL that should help you shrink the file to reclaim some disk space. be warned, this might impeed your ability to restore the database later if it all goes wibble.
First run the following
USE nameOfTheDatabaseHere
SELECT * FROM sysfiles
Now, take note of the fileid of the log file (usualy 2 for most databases) then do
DBCC SHRINKFILE
( fileIDGoesHere, TRUNCATEONLY )
This will truncate the log file to as small as the DB Server will allow.
See http://msdn2.microsoft.com/en-us/library/aa258824.aspx for more info
No comments:
Post a Comment