A SQL Server restore succeeded when the restore sequence finishes without error and the database is left online and consistent at the intended recovery point. The check has two halves: the completion state of each RESTORE statement — message 3014 after "RESTORE DATABASE successfully processed … pages" indicates success — and the state of the database afterward, verified with sys.databases, sys.dm_hadr_database_replica_states where relevant, and a data-level sanity check. A restore that reports success but leaves the database in RESTORING, RECOVERY_PENDING, or SUSPECT has not delivered a usable database.
The phrase "was" in this question usually means one of two situations: checking the outcome immediately after running a restore script, or auditing later whether a restore that supposedly happened actually did. Both need the same evidence, gathered in a deliberate order, because the most convenient indicators — a green checkmark in a GUI or a row in msdb — are also the ones most easily misread.
Start With Prerequisites: Know What "Success" Means for This Restore
Before checking anything, pin down three facts, because they change what counts as a pass.
First, the restore plan. A full backup alone ends in RECOVERY and yields a usable database. A full backup plus differentials plus log backups restored with NORECOVERY along the way must end with a final RESTORE ... WITH RECOVERY; until that final statement runs, the database is intentionally non-operational and looks "broken" to naive checks. SQL Server's own documentation for RESTORE describes NORECOVERY as leaving the database in a restoring state, and that is expected behavior, not failure.
Second, the target. Restoring over an existing database versus to a new name, on the same instance versus a different one, with MOVE clauses or without — each variant produces different file placement and different post-restore checks. If the target files already exist, the restore fails outright unless WITH REPLACE is specified; if MOVE is omitted when restoring to a different instance, files land on whatever default paths exist there, which may be the wrong volume.
Third, the intended recovery point. If the goal was "as close to the failure as possible," success means the last log backup applied without a gap and the database recovered to that point. If the goal was a point in time, success means STOPAT was honored, not merely that the sequence completed. Write this down; it becomes the acceptance criterion the rest of the procedure tests against.
Step 1: Read the Restore Output, Not Just the Absence of Red
The most direct evidence is the message stream from the RESTORE statements themselves. In SQL Server Management Studio, the Messages tab of the query window or the restore dialog's progress output carries it; in scripts, capture it. What matters:
Completion message. On a successful database restore, SQL Server reports "RESTORE DATABASE successfully processed N pages in X.XXX seconds (Y.YYY MB/sec)." The statement completing is the primary success signal. Errors such as 3201 ("Cannot open backup device"), 3154 ("The backup set holds a backup of a database other than the existing"), or 3283 (file placement problems) mean the restore did not complete. Informational warnings are not failures but deserve attention. Message 3205 means the media has more backups than needed and the wrong one may have been read; message 3189 flags multiple media families; a message about "the backup set … is expired" means RESTORE refused to proceed. A restore that "succeeded" after reading the wrong backup set is a silent failure at the data level even though the statement completed. WITH CHECKSUM / WITH VERIFYONLY discipline. Taking backups with CHECKSUM lets RESTORE verify page checksums during the restore; RESTORE VERIFYONLY checks backup readability without restoring. Running VERIFYONLY on the backup device before restoring is cheap insurance against discovering corruption mid-sequence.
The trap: a multi-statement restore script that stops on an error partway through can leave earlier statements "successful" and later ones never executed. If you check only the final statement's output, or only that "some restore ran," you can approve an incomplete sequence. Capture every statement's outcome, and require the last statement to be the WITH RECOVERY one.
Step 2: Query the Database State
Output messages are ephemeral; the catalog is durable. Run:
Interpret state_desc precisely:
ONLINE — usable; move to step 3. RESTORING — a NORECOVERY restore is pending completion, either mid-sequence or because the final RECOVERY never ran. If your plan says the sequence is done, this is a failure: the database will not be usable until RESTORE ... WITH RECOVERY completes. RECOVERY_PENDING — SQL Server cannot bring the database online, often because required files are inaccessible or a log backup needed for recovery is missing. This is a failure to investigate, starting with the SQL Server error log. SUSPECT — the database cannot be recovered automatically; restore from backup or run emergency repair procedures under guidance. OFFLINE — the database was intentionally taken offline, which a restore does not normally do; if it appears after a restore, treat it as unexpected.
user_access_desc and is_read_only reveal a different class of problem: a restore with WITH STANDBY leaves the database readable and in standby, not ONLINE in the normal sense — if your acceptance criterion is "read-write and accepting connections," standby fails that criterion even though the restore completed. Likewise, a RESTORE ... WITH FILE = ... that read an older backup set succeeds but delivers older data; the state column cannot tell you that, which is why step 4 exists.
Step 3: Confirm the Recovery Finished and the Database Is Usable
The catalog says ONLINE; now prove the database actually works. In order of increasing intrusiveness:
Connect and query. Open a new connection and run SELECT DB_NAME(), COUNT(*) FROM sys.objects, or DBCC CHECKDB against a restored copy when time permits. A database that lists as ONLINE but throws internal errors on first access is not a functional success. Check the error log for the restore. The SQL Server error log records "Starting up database 'X'" and the recovery completion, including messages about the number of transactions rolled forward/back, and "The database 'X' is marked RESTORING and is in a state that does not allow recovery to be run." Absence of the "does not allow recovery" line and a normal startup entry is a good sign; the log is also where RECOVERY_PENDING causes surface. Confirm the recovery model and date. SELECT name, recovery_model_desc FROM sys.databases — restoring with WITH NORECOVERY does not change the recovery model recorded at backup time, but restoring a database with WITH RECOVERY over one configured for FULL while log backups are expected is a common operational follow-up; if the target must continue log-backup chains, verify the recovery model matches the intended operating mode. After a failed or partial restore, expect the database to be unusable, not merely "old." SQL Server does not leave a half-restored database online; it is either RESTORING or failed. Do not attempt to "fix" a RESTORING database by detaching and attaching; complete the sequence with RECOVERY or restore again from known-good backups.
For Always On availability group databases, add a topology-specific check: after restoring to a secondary replica or seeding a database, query sys.dm_hadr_database_replica_states and confirm the replica's synchronization_state_desc and database_state_desc — a restored database added to an AG shows synchronization_state_desc of SYNCHRONIZING until it catches up, and a failed join shows NOT SYNCHRONIZING. A restore can be technically complete yet leave the AG database not serving reads on the intended replica.
Step 4: Verify the Restore Point Matches the Intended Backup
Statement success and state checks prove a restore completed. They do not prove the right backup was restored. Two routes close that gap:
The RESTORE HEADERONLY and RESTORE FILELISTONLY output. HEADERONLY lists backup sets on the media — database name, backup start/finish time, backup type, and the LSN ranges. RESTORE FILELISTONLY lists logical and physical files in the backup set, which matters because restoring the wrong backup set often also means the wrong file layout. Confirm the FinishTime matches the backup you intended, and confirm the backup type chain (full → differential → logs) is internally consistent. The backup history in msdb. On the instance that took backups, msdb.dbo.backupset and msdb.dbo.backupmediafamily record database_name, backup_start_date/backup_finish_date, type (D/I/L), and the physical device. Match the restore you ran against these rows. On the instance that received a copy of the backup file, however, this history is usually empty — a RESTORE of a file copied from another server does not create rows in that server's backupset table. Checking the wrong instance's msdb, or treating an empty result as proof the restore failed, is a classic false negative.
For point-in-time restores, STOPAT/STOPATMARK success must be shown by querying the data afterward, e.g., comparing a known change (a row inserted at a known time, an audit table's maximum timestamp) against the expected cutoff. SQL Server does not expose "the restore stopped exactly here" as a catalog column; the effective check is whether the restored data contains the changes before the marker and not the ones after. If the diff shows data from after the STOPAT time, the STOPAT was misapplied or the wrong log sequence was restored.
Step 5: Run the Data-Level Checks That Actually Matter
A restored database that passes structural checks can still be a bad restore for the business. Add:
Row-count and aggregate spot checks against known values from the source system at backup time; a discrepancy suggests the wrong backup set or a lost log tail. Referential and constraint checks: DBCC CHECKCONSTRAINTS on key tables; a restore does not re-run every constraint, but it preserves what the backup contained, so failures indicate backup-time corruption or an incomplete apply. The orphaned-user check after restores to a different instance: database users mapped to logins that do not exist there produce login failures unrelated to restore success. sp_change_users_login or the newer login-to-user mapping routines resolve them; the restore itself was fine. Retention of the tail when the source database was damaged: if the last log backup before the failure could not be taken, the restore cannot reach the failure point, and the data-level gap between the restored point and the failure must be documented as a known limitation, not reported as an error.
Step 6: Distinguish the Common Failure Patterns (and Start With Reversible Checks)
When a restore is reported but behavior is wrong, match symptom to likely cause before acting:
"RESTORE completed but database is RESTORING." The final WITH RECOVERY statement never ran — a skipped step, a broken script chain, or a NORECOVERY syntax on the last statement. Fix: complete the sequence with a final restore. Reversible starting point: check the restore plan against the script that ran. RECOVERY_PENDING after a successful message. Missing or inaccessible files, or a required log backup not yet applied. Check the SQL Server error log for the specific error (often 9003, 9004, 9956-class messages) before touching files. Restore succeeds, database shows older data than expected. Wrong backup set read — check HEADERONLY FinishTime; check that WITH FILE = pointed at the intended set. Restore fails with 3154 or 3283 on an existing target. Existing database name or file conflicts; the fix is a distinct target name or WITH REPLACE plus MOVE, not a retry. CHECKDB reports errors after a restore. Backup-time corruption, or hardware that corrupted the file en route; re-restore from a verified backup (VERIFYONLY) from a different source before invoking repair procedures.
Auditing Later: When You Cannot See the Running Restore
If the question is retrospective — did someone restore this database last week, and did it finish? — the durable evidence is the catalog state (step 2), the error log history, SQL Server Agent job history if restores run as jobs (the job's step outcome records), and, on the source instance, the msdb backup history that generated the media. Be explicit about the limits: query history in Extended Events or default traces is not guaranteed to persist; absence of a logged restore does not prove no restore happened. The state checks are positive evidence of what is currently true; they are not proof of when or how the database arrived in that state. For an audit, record state_desc, the last known restore times from the error log or job history where available, and the intended backup evidence from HEADERONLY, and label anything reconstructed from memory or schedules as unverified.
What Success Looks Like, Summarized
A defensible pass judgment has four parts, each backed by something you can point to: the final RESTORE statement completed with a 3014-class success message; the database row in sys.databases shows ONLINE with the intended user access; the error log shows normal startup and recovery; and the restored state matches the intended backup set and recovery point, ideally confirmed by HEADERONLY metadata and at least a spot data check. Anything less is partial evidence. A missing one of the four is not cause to redo the restore necessarily — it is cause to run the specific check that closes the gap.
FAQ
Does "RESTORE DATABASE successfully processed" mean the restore is usable right away?
Only if the statement was the last one in the sequence and it ran with RECOVERY (the default). If NORECOVERY was still in effect, the message is accurate about that statement and the database remains RESTORING until the final restore completes.
Why does msdb.dbo.backupset show nothing even though I just restored a copy?
Restoring a backup file copied from another server does not insert rows into the receiving server's backup history. That table is a record of backups taken, not applied, so an empty result there says nothing about whether your restore worked. Use the RESTORE output, sys.databases, and HEADERONLY on the media instead.
Is a successful VERIFYONLY enough to call the restore good?
No. VERIFYONLY checks that the backup media is readable and structurally valid; it does not restore, and it says nothing about the resulting database state, file placement, or whether the data matches the intended point. Treat it as a pre-flight step.
The database is ONLINE but queries error with a missing login or user. Did the restore fail?
Almost certainly not. Restoring to a different instance leaves database users without matching logins. Remap the users to logins — the restore itself was successful.