本主題說明如何重新啟動中斷的還原作業。
重新啟動中斷的還原作業
再次執行中斷的 RESTORE 語句,並指定:
原始 RESTORE 陳述中所使用的相同子句。
RESTART 子句。
範例
此範例會重新啟動中斷的還原作業。
-- Restore a full database backup of the AdventureWorks database.
RESTORE DATABASE AdventureWorks
FROM DISK = 'C:\AdventureWorks.bck'
GO
-- The restore operation halted prematurely.
-- Repeat the original RESTORE statement specifying WITH RESTART.
RESTORE DATABASE AdventureWorks
FROM DISK = 'C:\AdventureWorks.bck'
WITH RESTART
GO