SQL Server Log Backup Restore Chain Guide
Apr 7, 2026 / · 7 min read · sql server restore backup transaction log norecovery msdb.dbo.backupset msdb.dbo.backupmediafamily database recovery ·Bringing a database back to a recent point means applying its backups in one order: the full backup, the latest differential if there is one, then every log backup since, oldest first. This script reads that chain out of msdb and then shows the restore sequence, with NORECOVERY on every step except the last. Purpose …
Read MoreSQL Server Verify Backup Files: RESTORE VERIFYONLY
Verify SQL Server Backup Files with RESTORE VERIFYONLY A backup file that cannot be restored is worthless, and the problem often surfaces only when a restore is attempted under pressure. The two scripts below use RESTORE VERIFYONLY to confirm that backup files are complete and readable before a real disaster occurs. …
Read MoreSQL Server Point-in-Time Restore with STOPAT
Apr 5, 2026 / · 9 min read · sql server restore backup recovery transaction log msdb database maintenance dba scripts point in time restore msdb.dbo.backupset msdb.dbo.backupmediafamily sys.databases ·A DELETE with no WHERE clause runs at 14:28, the mistake is noticed at 14:45, and the last scheduled backup is hours old. Restoring that backup alone throws away everything committed in between. RESTORE LOG ... WITH STOPAT replays the transaction log only up to a chosen time, and the script below lists the backups in …
Read More