SQL Server 2008 Truncating Log File
First find the filename labels for your database:
select name from <DatabaseName>.dbo.sysfiles
Next truncate the log:
BACKUP LOG <DatabaseName> WITH TRUNCATE_ONLY
Finally shrink the database based on the log file in step 1:
DBCC SHRINKFILE('NameAbove_log',2048)
2048 is the resultant file size in MB.

0 Comments:
Post a Comment
<< Home