Check SQL Server Backup Recovery Forks After a Forced Failover

Last updated: December 5, 2026.

After a forced SQL Server failover with possible data loss, build a replacement replica from a fresh backup of the current primary when practical. If you must reuse earlier backups, verify that they form a restore path to the current primary’s recovery fork.

Read the backup headers before planning the restore

Record the backup set position, database family, first and last log sequence numbers, and recovery fork IDs from RESTORE HEADERONLY for each file you intend to use. Check FirstRecoveryForkID, RecoveryForkID, and ForkPointLSN where present. Backup timestamps and matching database names are insufficient to establish compatibility.

Backups taken before a divergence can still be useful if the restore can reach the fork point and follow the intended branch. A log backup from the old primary may also contain transactions that never reached the new primary. Restoring farther along the old branch can prevent switching to the new one. A different fork ID is a reason to investigate where the paths diverged.

Separate replica seeding from data recovery

For seeding, take a new full backup on the current primary and retain the transaction log backups needed after it. Restore the full backup and subsequent logs with NORECOVERY on the intended secondary, then follow the documented join procedure. In a distributed availability group, identify the current global primary and follow its seeding procedure.

For suspected lost transactions, preserve backups from the old primary and restore them into an isolated database where feasible. Compare business records and decide how to reconcile missing changes at the application level. A log restore cannot merge two divergent histories.

If backup size or time makes a fresh full impractical, rehearse the candidate restore sequence on a disposable instance. Capture where it accepts or rejects each set. An actual rehearsal provides stronger evidence than matching filenames or a successful standalone backup verification.

Documentation

Related guides

Sergey Kornilov

Sergey Kornilov