7complet DB Backup and Recovery
7complet DB Backup and Recovery
Backing up and restoration of your MS SQL Server 2008 Database using the Microsoft
SQL Server Management Studio.
To backup your MS-SQL Server 2008 Database through MS-SQL Server Management Studio Express, follow the
steps shown below:
First, you need to configure the Microsoft SQL Server Management Studio on your local machine.
Step 1: Open your Microsoft SQL Server Management Studio.
Step 2: Using your Database Username and Password, simply login to your MS SQL server database.
Step 3: Select the database >> Right-click >> Tasks >> Back Up [as shown in the image below]:
Once you click on the “Backup” the following Backup Database window will appear.
Step 5: Now, by clicking on the “Add” button, the following window will appear to select the path and file name for
the database backup file [as shown in the image below]:
Step 6: Select the destination folder for the backup file and enter the “File name” with .bak extension [as shown in
the image below]:
Make sure you place your MS SQL database .bak file under the MSSQL backup folder.
Step 7: Hit the OK button to finish the backup of your MS SQL Server 2008 Database. Upon the successful
completion of database backup, the following confirmation window will appear with a message “The backup of
database “yourdatabasename” completed successfully. [as shown in the image below]:
Following the above shown steps, you will be able to create a successful backup of your MS SQL Server 2008
Database into the desired folder.
Step 3: The following “Restore Database“windows will appear. Select “From device” mentioned under the
“Source for restore” and click the button in front of that to specify the file location [as shown in the image below]:
Step 4: Select the option “Backup media as File” and click on the Add button to add the backup file location [as
shown in the image below]:
Step 5: Select the backup file you wish to restore and Hit the OK button [as shown in the image below]:
You will get the confirmation windows with a message “The restoration of database “yourdatabasename” completed
successfully.” Now you know the procedure of backing up and restoring MS SQL Server 2008 Database.
Step 6: Once this has completed, a pop-up will say the database has been restored successfully. Click OK.
You can create a back up and restore using SQL transaction code: use master
BACKUP DATABASE Employee TO DISK = 'D:\Employee.bak'
restore DATABASE Employee from disk= 'D:\Employee.bak'