This article demonstrates how to backup database from SQL server to disk using query.
Let's start step by step. Open Microsoft SQL Server management studio and run following query.
The following example backs up the complete TestDB database to disk.
USE TestDB;
GO
BACKUP DATABASE TestDB
TO DISK = 'c:\temp\TestDB.bak'
WITH FORMAT,
MEDIANAME = 'SQLServerBackups',
NAME = 'Full Backup of TestDB';
GO
Full back up to disk as default location from SQL Server Management Studio
In this example, the database Test will be backed up to disk at the default backup location.
1. The connect SQL server database engine instance in your machine.
2. Expand Databases, then right click on Test database, then select Tasks, then select Back Up.
3. Then click OK.
4. When the backup completes successfully, select OK to close dialog box.
Comments
Post a Comment