Each night, I ran a transaction log backup and shrink of my main database table. At first, i didnt make much difference to the log file size (gets up to around 3gb in size). Last week, the log file shrunk to 90mb and I have no idea why. The log file is now starting to grow in size and is currently up to about 1.4gb.
Why would this happen? Not that Im complaining but it has made a difference to my log shipping process which has not failed once since the log file has shrunk. Would like to know how I can keep the log file small since the log shipping is far more robust.
Contact ManagementMicrosoft SQL Server 2005Enterprise Software
Occationally run T-SQL script to shrunk databases and log files.
Example Script to shrink msdb:
DBCC SHRINKFILE ("msdbdata", TRUNCATEONLY)
DBCC SHRINKFILE ("msdblog", TRUNCATEONLY)