Labels

Sunday, 17 January 2016

SQL DBA : How to restart an interrupted database restore in SQL Server

Route Cause :

My database restoration failed due to network failure .

Solution :

A database administrator can use RESTORE DATABASE .... WITH RESTART command to finish restoring an interrupted database restore operation .

In this scenario Database state would be in Restoring ...  Ex : Adventureworks (Restoring...) .

Now we can resolve this situation in 2 steps .

Step 1.  Restore FILELISTONLY from disk =' C:\Backups\Adventureworks .bak '

Note : The above step is used to get list of the backups on the file i.e  get backup information from backup file

Step 2. Restore database Adventureworks  from disk = ' C:\Backups\Adventureworks .bak ' with restart .

Note : Step 2 does the actual restore with restart option .

Now the database will restore successfully and will allows use connectivity .


I hope the article was useful! And I need to let you know that this won’t stop here .keep in touch and feel free to ask any doubts related to this topic .

No comments:

Post a Comment