In this article, we are going to learn how to get backup from SQL Server and how to restore the backup files in SQL Server.
First, we will create the sample SQL database with the sample table.
Here, I have created the database as SqlBackUpTest and created sample table named as Log.


Get SQL database backup
Step 1
Once the database has been created, we will take the backup.
Once the database has been created, we will take the backup.
To take SQL database as a backup file, select your database in SQL Server. Right click and select Tasks -> select BackUp.
Step 2
Now, you can see the dialog Window, once you click Backup option.

In the dialog Window, the default destination path has been selected. It will create the backup file in your SQL installed directory with the name of your database ex : "SqlBackUpTest.bak".
Note
The backup file with be created with the extension of .bak.
The backup file with be created with the extension of .bak.
If you want to create the backup file in any other directory, click Remove button in the dialog Window and click Add button.
Step 4
Now, you can see another new dialog Window, which will have an option to select our custom directory to create the backup file.

Now, you can see another new dialog Window, which will have an option to select our custom directory to create the backup file.

Step 5
Select your Custom directory and enter the backup file name in File Name option. Please create your file name same as your database name. In future, you don't need to remember your DB name and it is a better way.
Select your Custom directory and enter the backup file name in File Name option. Please create your file name same as your database name. In future, you don't need to remember your DB name and it is a better way.
Note
While entering the file name, it should have to mention your extension name also. ex "SqlBackUpTest.bak".
While entering the file name, it should have to mention your extension name also. ex "SqlBackUpTest.bak".
Step 6
Once you are done with all the steps, finally click OK. Now, you can see the message box to display backup of your database filename completed successfully.


Ravi PatelPosted Apr 26, 2017, 8:35 AM
Nice explanation thanks
SubashPosted Apr 26, 2017, 5:58 AM
Useful share for begineers
Jyoti JodhaPosted Apr 26, 2017, 12:55 AM
Nice @ Ramesh Palanivel And Thanks For Share