Recovery model
In full recovery, log space is only reused after a log backup. In simple, after each checkpoint.
A log that keeps growing can fill the disk and stop the database. How to size transaction logs for your heaviest real work.
Every change to a SQL Server database is written to its transaction log first. If the log fills and can’t grow, the database stops accepting changes. Logs grow when a large transaction runs, when log backups aren’t happening, or when something prevents the space being reused, such as a long-open transaction or a replica that’s fallen behind. Growing in small steps also slows the log down over time.
In full recovery, log space is only reused after a log backup. In simple, after each checkpoint.
More frequent log backups mean less log held between them.
An index rebuild or big batch update must fit in the log in one go.
Long-open transactions, replication, and availability group replicas.
Step 1 of 4
Track log space used over a month, including index maintenance and month end.
Set the log comfortably above the peak, created in one step rather than many small growths.
A fixed size, not a percentage, as a safety net, not the plan.
Alert when the log passes an agreed percentage full, with the reason it can’t be reused.
Shrinking a log that will only grow again the same night wastes effort and fragments it. Shrink once, after fixing the cause of unusual growth, then resize it properly. For example: a log that grew to 200GB because log backups failed for a week can be shrunk and resized once the backups are running again.
Tell us which databases are affected and how they’re backed up. A few lines are enough.