/ Published in: SQL
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DECLARE @LogFileLogicalName sysname SELECT @LogFileLogicalName=Name FROM sys.database_files WHERE TYPE=1 print @LogFileLogicalName DBCC Shrinkfile(@LogFileLogicalName,100)
URL: http://madhuottapalam.blogspot.com/2008/05/faq-how-to-truncate-and-shrink.html