r/SQLServer • u/techsamurai11 • 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
View all comments
Show parent comment
2
u/SQLBek 1 Nov 07 '25
The CHECKPOINT operation took time, because it writes dirty data pages back to disk. If you were deleting 15 million records, that's a bunch of data pages that need to be written back to disk.
"The check seems to take forever." Just let CHECKPOINT do its thing.
"Is there a more efficient check."
A more efficient checking of what?