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
1
u/techsamurai11 Nov 07 '25
I was simply curious because I saw an extra checkpoint where I'd expected one.
There was no workload or activity, at least not direct data access. There was activity while I was deleting 15 million rows but it was finished 20 minutes before the backup.
That check seems to take forever if there's a lot of activity - I stop running it.
Is there a more efficient check?