We use SQL Server 2012 (SP2) running in Full recovery mode. We take half-hourly transaction log backups. Our DB size is 20GB. Every night we perform DB maintenance tasks - full backup, rebuilding some indexes, update statistics, clearing some old data. The half-hourly transaction log backups save to an external HDD. Our transaction log LDF file consistently grows to around 13GB. The transaction log backup .trn files are around 20-30MB (depending on activity of DB of course), but the one immediately after the nightly maintenance tasks is 13GB. My understanding was that the transaction log LDF file would automatically shrink back to 0 immediately after a transaction log backup. However, it seems like it expands to the maximum size it needs and stays that size.
Is this normal? Is it a problem? Is there any way to automatically shrink it to 0 after the transaction log backup? (I know how to shrink it manually).
Thanks, Jon W