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/dbrownems Microsoft Employee Nov 07 '25
The log records are always batched in memory across all sessions, and streamed to the log file with efficient sequential IO. When a session issues a COMMIT is simply is waiting for its last-written log record to be hardened to the log file.