r/SQLServer • • Nov 07 '25

Question SQL Server - Double Checkpoint

Any idea why a transaction log backup using Ola Hallegren's scripts would have triggered 2 checkpoints that can be seen using the following script:

SELECT [Checkpoint Begin], [Checkpoint End]

FROM fn_dblog(NULL, NULL)

WHERE Operation IN (N'LOP_BEGIN_CKPT', N'LOP_END_CKPT');

All the other databases show one. Tbh, I don't check for checkpoints that often so it might be standard to do more than one checkpoint.

1 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/SQLBek 1 Nov 07 '25

Better question - why are you even interrogating the T-Log in the first place?

1

u/techsamurai11 Nov 07 '25

The discussion yesterday made me wonder if transaction log backups (BACKUP LOG) that happen hourly generate a checkpoint like database backup (BACKUP DB) That would have constituted 24 checkpoints for all databases, at minimum. It turns out they did. Just curiosity.

I normally don't check how logs and mdf do their work although it never surprises me how the log file tends to grow over time with space being 99% free.