How to Restore Database With NORECOVERY in SQL Server
Restore database with NORECOVERY is the command option you use when more backups must follow the first one. SQL Server applies the backup and puts the database in the RESTORING state so the next full, differential or log backup continues the same restore sequence.
Most people search for this after Object Explorer shows (Restoring…) next to a database and users cannot connect. That state is normal in the middle of a restore and a mistake at the end.
This guide explains the restore order, the three recovery options, T-SQL and SSMS steps, point in time restore and the errors you will meet on the way.
Quick SummaryRestore database with NORECOVERY on every backup except the last one. Use WITH RECOVERY on the last backup to bring the database online. STANDBY makes the database readable between log restores. Add STOPAT to every log restore to stop at a chosen time. Take a tail log backup first when the database is still online. Check state_desc in sys.databases to confirm the final result.
What Does Restore Database With NORECOVERY Mean?
NORECOVERY stops the restore after the redo phase. SQL Server rolls the committed work forward from the backup and does not undo the uncommitted transactions yet.
RECOVERY adds the undo phase. After undo, the database comes online and SQL Server rejects every further backup in the sequence.
According to Microsoft, a restore sequence starts with the full backup WITH NORECOVERY and ends with RESTORE DATABASE WITH RECOVERY. Microsoft lists the exact order in its guide to full recovery model restores.
Do You Know?According to Microsoft, SQL Server restores nothing when you omit the FROM clause and only recovers the database. That is why RESTORE DATABASE SalesDB WITH RECOVERY brings a RESTORING database online.
How Do RECOVERY, NORECOVERY and STANDBY Differ?
Compare the three restore options in the table below. RECOVERY is the default when you name no option.
| Option | State afterward | Next backup | Typical use |
|---|---|---|---|
| WITH RECOVERY | ONLINE | Rejected | Final step of a restore |
| WITH NORECOVERY | RESTORING | Accepted | Middle of a restore, log shipping secondary, mirror or replica setup |
| WITH STANDBY | Readable | Accepted | Reports between log restores, search for a point in time |
What Should You Check Before Restoring a Database With NORECOVERY?
Check these five items before the first restore statement.
- Backup chain. Collect the full backup, the latest differential backup and every log backup after it in order.
- Backup content. Execute RESTORE HEADERONLY and RESTORE FILELISTONLY to see the backup type, the LSN values and the file names.
- Backup health. Execute RESTORE VERIFYONLY to find a damaged file before the restore starts.
- Tail log backup. Take one when the database is online and you need the latest transactions. According to Microsoft, you need no tail log backup when the recovery point sits inside an earlier log backup.
- Space and access. Confirm free disk space for the data and log files and exclusive access to the database you restore over.
RESTORE HEADERONLY FROM DISK = N'D:\Backups\SalesDB_Full.bak';
RESTORE FILELISTONLY FROM DISK = N'D:\Backups\SalesDB_Full.bak';
RESTORE VERIFYONLY FROM DISK = N'D:\Backups\SalesDB_Full.bak';
-- Tail log backup of an online database
BACKUP LOG SalesDB TO DISK = N'D:\Backups\SalesDB_Tail.trn' WITH NORECOVERY;
Heads UpBACKUP LOG with NORECOVERY puts the source database in the RESTORING state. Execute it only when you are ready to restore over that database. Microsoft explains the cases on its tail log backups page.
How to Restore Database With NORECOVERY Using T-SQL?
Every sequence below uses NORECOVERY on all steps and RECOVERY on the last step. Examples use the database SalesDB and the folder D:\Backups. Replace the names and paths with your own values.
Full Backup and One Log Backup
Statement one restores the full backup and waits. Statement two applies the log backup and brings SalesDB online.
RESTORE DATABASE SalesDB
FROM DISK = N'D:\Backups\SalesDB_Full.bak'
WITH NORECOVERY, STATS = 10;
RESTORE LOG SalesDB
FROM DISK = N'D:\Backups\SalesDB_Log1.trn'
WITH RECOVERY;
Full, Differential and Log Backups
Apply only the latest differential backup because it contains all data updates since the full backup. Then apply the log backups in the order SQL Server created them.
RESTORE DATABASE SalesDB FROM DISK = N'D:\Backups\SalesDB_Full.bak' WITH NORECOVERY;
RESTORE DATABASE SalesDB FROM DISK = N'D:\Backups\SalesDB_Diff.bak' WITH NORECOVERY;
RESTORE LOG SalesDB FROM DISK = N'D:\Backups\SalesDB_Log1.trn' WITH NORECOVERY;
RESTORE LOG SalesDB FROM DISK = N'D:\Backups\SalesDB_Log2.trn' WITH RECOVERY;
Point in Time With STOPAT
According to Microsoft, you specify the same STOPAT time in every RESTORE LOG statement of the sequence. SQL Server recovers the last transaction committed at or before that time. Restore database with NORECOVERY on the full backup first and add STOPAT from the first log restore onward.
Point in time restore needs the full or bulk logged recovery model and log backups that reach past your stop time.
RESTORE DATABASE SalesDB FROM DISK = N'D:\Backups\SalesDB_Full.bak' WITH NORECOVERY;
RESTORE LOG SalesDB FROM DISK = N'D:\Backups\SalesDB_Log1.trn'
WITH STOPAT = N'2026-11-20T14:30:00', NORECOVERY;
RESTORE LOG SalesDB FROM DISK = N'D:\Backups\SalesDB_Log2.trn'
WITH STOPAT = N'2026-11-20T14:30:00', RECOVERY;
Query Access With STANDBY
STANDBY needs an undo file. SQL Server stores the rolled back transactions in that file so the next log restore can continue. You can query SalesDB between restores but must close every connection before the next log restore.
RESTORE LOG SalesDB
FROM DISK = N'D:\Backups\SalesDB_Log1.trn'
WITH STANDBY = N'D:\Backups\SalesDB_Undo.tuf';
Bring a RESTORING Database Online
Omit the FROM clause to recover without another backup. Use this command when no more backups exist or the last restore used NORECOVERY by mistake.
RESTORE DATABASE SalesDB WITH RECOVERY;
SELECT name, state_desc FROM sys.databases WHERE name = N'SalesDB';
How Do You Use NORECOVERY in SSMS?
SSMS shows the same three options when you restore database with NORECOVERY on the Options page of the Restore Database window.
- Right click Databases in Object Explorer and select Restore Database.
- Select Device, browse to the full backup file and select OK.
- Open the Options page.
- Under Recovery state select Leave the database non-operational, and do not roll back uncommitted transactions. SSMS labels it RESTORE WITH NORECOVERY.
- Select OK and wait for the success message.
- Open Restore Database again for the same database and add the next backup with the same Recovery state. On the last backup select RESTORE WITH RECOVERY.
Pro TipDatabases that still show Restoring after the last step need RESTORE DATABASE with RECOVERY. Fix SQL Database Stuck in Restoring State explains the other causes.
Which Errors Appear When NORECOVERY Goes Wrong?
Five messages mark a broken restore sequence.
| Message | Cause | Fix |
|---|---|---|
| The preceding restore operation did not specify WITH NORECOVERY or WITH STANDBY | An earlier step used RECOVERY | Restart from the full backup and use NORECOVERY on every step except the last |
| Database cannot be opened. It is in the middle of a restore | The database waits for the next backup | Apply the next backup or execute WITH RECOVERY |
| Exclusive access could not be obtained because the database is in use | Another session uses the database | Close the connections or use SINGLE_USER with ROLLBACK IMMEDIATE |
| The log in this backup set begins at LSN, which is too recent to apply to the database | A log backup is missing from the chain | Find the earlier log backup in msdb.dbo.backupset and apply it first |
| The backup set holds a backup of a database other than the existing database | The destination name belongs to a different database | Add WITH REPLACE or restore into a new database name |
Error 3154 is the last message in the table. Fix SQL Server Error 3154 explains four fixes. Restores that cannot open the backup file stop earlier with Msg 3201 and Fix SQL Server Error 3201 Cannot Open Backup Device covers that case.
What Are the Software and System Specifications for RESTORE Commands?
Check both tables before you restore a database with the steps above.
Software Specifications
| Attribute | Detail |
|---|---|
| Tool | SQL Server Management Studio (SSMS) 22 |
| Language | T-SQL |
| SQL Server versions | SQL Server 2014 and later |
| Cloud targets | Azure SQL Database and Azure SQL Managed Instance |
| Permission when the database exists | sysadmin or dbcreator server role members and the database owner |
| Permission when the database is new | CREATE DATABASE |
| Not enough alone | db_owner role membership |
System Specifications
| Component | Requirement |
|---|---|
| Operating system (client) | Windows 11 (64 bit), including Arm64 editions |
| Operating system (server) | Windows Server 2025, 2022 and 2019 |
| Processor | x64 processor, quad core or better recommended |
| RAM | 4 GB minimum, 16 GB recommended |
| Hard disk space | 4 GB minimum, up to 50 GB depending on installed features |
| Display | 1366 x 768 minimum |
| Framework | Microsoft .NET Framework 4.8 to open SSMS (Setup installs it) |
| Install permission | Administrator rights |
Frequently Asked Questions
Can You Restore Database With NORECOVERY Without Any Log Backup?
Yes. Full backups restore with NORECOVERY alone and the database waits in the RESTORING state. Execute RESTORE DATABASE SalesDB WITH RECOVERY when no more backups will follow.
Does the RESTORING State Stop Users From Opening the Database?
Yes. SQL Server rejects every connection to a RESTORING database except the restore session. Only STANDBY databases accept queries.
Is RECOVERY the Default Option in a RESTORE Command?
Yes. SQL Server uses WITH RECOVERY when you name no option. Add NORECOVERY or STANDBY on every statement that has more backups after it.
Can You Restore a Differential Backup After WITH RECOVERY?
No. SQL Server rejects the differential backup because the restore sequence already ended. Start again from the full backup with NORECOVERY.
Can You Query a Database Restored With STANDBY?
Yes. STANDBY databases accept queries between log restores. Close the connections before the next log restore because it needs exclusive access.
Can You Bring a Database Online After NORECOVERY Without More Backups?
Yes. Execute RESTORE DATABASE SalesDB WITH RECOVERY and SQL Server completes the undo phase. Any log backup you did not apply remains outside the database.
Can You Check That a Restore Finished Correctly?
Yes. Query sys.databases and confirm state_desc shows ONLINE. Execute DBCC CHECKDB on the restored database to confirm no corruption.
Final Words on Restore Database With NORECOVERY
NORECOVERY is a pause in the restore and never a fault. Use it on every backup except the last one and finish with RECOVERY.
Restores that end with RECOVERY too early force you to start again from the full backup. Check the backup chain first and confirm the final state in sys.databases.
Key Takeaways
- Restore database with NORECOVERY on every backup except the last one.
- WITH RECOVERY on the last statement brings the database online and ends the sequence.
- STANDBY adds query access between log restores and needs an undo file.
- STOPAT belongs in every log restore of a point in time sequence.