Introduction
The Database can be backup for avoiding the lost of data, corrupted data in the sql server. It will generate the .bak file and it can be restored into the same database later.
Backup
The Back can be taken using the Backup command in the sql query window. There are two types of medium to back up data. It can be either Disk or Tape.
BACKUP database TO [Disk/Tape] Path
For example
In the connected sql server there will be many database. We need to select a database which needs to be backed up the data.
BACKUP Employees
TO DISK = 'D:EmployeesBackUpFile.bak'
GO
Restore
The backed up database can be restored using the RESTORE command.
RESTORE database FROM [Disk/Tape] Path
For example
The Employees database the backup data and it can be restored from the path.
The Employees database the backup data and it can be restored from the path.
RESTORE Employees
FROM DISK = 'D:EmployeesBackUpFile.bak'
GO
Screenshots of Web application



Sakesh UttamPosted May 15, 2017, 12:24 PM
But when i restore it give error as---Backup and Restore the Database from SQL Server Select Database: Backup... The backup set holds a backup of a database other than the existing 'test2' database. RESTORE DATABASE is terminating abnormally
Sakesh UttamPosted May 15, 2017, 12:23 PM
Sir when i take backup ,this work successfully
seddig shwehdiPosted Apr 17, 2017, 6:54 AM
To restore the master database, the server must be running in single-user mode.
Dilip KumarPosted Dec 29, 2016, 2:52 AM
I am finding error of my database
Dilip KumarPosted Dec 29, 2016, 2:52 AM
I m finding error in restore ..
noreturn cadornaPosted Jun 24, 2016, 4:29 AM
Incorrect syntax near 'C:'. Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a change tracking context clause, the previous statement must be terminated with a semicolon. please help..
Kwesi ChambasPosted Nov 26, 2015, 12:31 PM
I get "Object reference not set to an instance of an object". error.
Amin GhaderiPosted Dec 8, 2014, 12:52 AM
very goood...tnx a lot.
Yasar ArfathPosted Mar 11, 2014, 9:49 AM
nice
shyleshPosted May 25, 2013, 10:48 PM
i%20have%20a%20database%20in%20my%20app_data%20folder..and%20dont%20want%20any%20other%20database%20in%20the%20dropdown%20list..%20How%20to%20to%20do%20that%3F%3F
christian AvilaPosted Apr 13, 2013, 5:38 PM
gracias me sirvió bastante