Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
This article explains how to restart an interrupted restore operation.
Execute the interrupted RESTORE
statement again, specifying:
RESTORE
statement.RESTART
clause.RESTORE ... WITH RESTART
restarts the restore process. There's no resume option for an interrupted restore operation.
However, RESTART
saves some time by skipping the analysis phase of database recovery, and in most cases, RESTART
doesn't need to recreate the database files, which can save a significant amount of time for larger databases, especially if Instant File Initialization (IFI) isn't enabled.
This example restarts an interrupted restore operation, using the example AdventureWorks2022
database.
-- Restore a full database backup of the AdventureWorks database.
RESTORE DATABASE AdventureWorks2022
FROM DISK = 'C:\Temp\AdventureWorks2022.bak';
GO
-- The restore operation halted prematurely.
-- Repeat the original RESTORE statement specifying WITH RESTART.
RESTORE DATABASE AdventureWorks2022
FROM DISK = 'C:\Temp\AdventureWorks2022.bak'
WITH RESTART;
GO
Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Documentation
Restore and Recovery Overview (SQL Server) - SQL Server
Learn about the operations involved in recovering a SQL Server database from a failure by restoring a set of SQL Server backups in sequence.
Recover database - no restore (Transact-SQL) - SQL Server
In SQL Server, a recovery-only restore recovers a database without restoring a backup, typically as the last step when restoring a sequence of backups.
Restore a SQL Server Database to a Point in Time (Full Recovery Model) - SQL Server
Restore a SQL Server Database to a Point in Time (Full Recovery Model)