How to Restore MS SQL Database from Backup

The simplest way to restore the backup (.bak) file to MS SQL server database. Option needs to take case to avoid error while restoring backup file.
In today's article I will show an example how you can restore your (.bak) taken backup file again to the new MS SQL server data base.  So for this tutorial we will connect to our MS SQL database server. 

Connect to MS SQL server

After connecting to the SQL server, we need to create a blank database. This blank database we will use for restoring the backup file. So here is our backup file which we will restore. 

.bak file
Now let's check the newly created blank MS SQL server database. 


Now restore the .bak filer we need to right click on database named as Emp and select Task option. 


On selection on Task a Right menu will open. From this menu we will we need to select option "Restore". Ones you select option Restore you will again get a new menu option. From this option select "Database".

Restore database

Ones we click on "Database" below mention screen will open. 



So here we are having two option first option is "Database" and second is "Device". So here the first option which is "Database" will use to select the database which we wat to restore in the blank newly created database. The second option "Device" will allow us to select the .bak file. So, we will go with second option "Device". 

Device: This option we need to locate the .bak file which we want to restore. To select the backup file click on "...". Ones you click a window will open.

Selected Backup file

Here I have already selected a backup file. By clicking on "Add" button. Ones you click on "Add" button a window will open. From this window we need to select the .bak file. 

Select backup file
After selecting the backup file we need to click on "Ok" button. Ones we click on "Ok" button. 
 
Above screen looks after adding a backup file. 

Now from top left menu we need to select "Options". Here you need to selection option Overwrite the existing database (WITH REPLACE) and second option is to "Close existing connection to designation database".

Option Selection while restoring backup

Now click on Ok to restore the database. Ones the Database restore completely you will get success message.

Success message

Now let's check the database for import detail.

Newly Imported Table in MS SQL

Post a Comment