Question

I did a full backup of my database in MSSQL2008 and then performed a backup of the Log. I expected the transaction log file to change in size, but when I checked the file on disk, it remains the same. Note: Database is in FULL recovery mode. What am i doing wrong?

Was it helpful?

Solution

SQL Server will not automatically shrink the physical size of the log after a backup.

Continually shrinking and regrowing the log after each backup would cause unnecessary performance issues (growing requires zeroing out the newly allocated space).

After the transaction log backup the log can be automatically truncated (not shrunk) which just marks any no longer required VLFs as available to be over written.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top