aawesome
asked on
easy way to shrink a sql log file in windows 2003 server OS
easy way to shrink a sql log file in windows 2003 server OS
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Oops. looking back I wasn't clear. This command can be run in "Query Analyzer". Copy, paste, edit dbnames and click "Run" or hit F5.
--------
Backup Log DBNAMEHERE with truncate_only
DBCC SHRINKFILE ('DBLOGICALNAMEHERE_log', 2)
---------
--------
Backup Log DBNAMEHERE with truncate_only
DBCC SHRINKFILE ('DBLOGICALNAMEHERE_log', 2)
---------
Then
DBCC SHRINKFILE
To reduce the filesize