Here, In this article we will learn that how to create database backup file using sql script.
We use BACKUP command for creating database backup in sql server.
Syntax of Backup command:
BACKUP DATABASE <database name>
TO DISK = <file path>
Arguments:
database name : Database name
file path : Backup file path
For Example:
BACKUP DATABASE ENTERPRISE TO DISK = 'D:\Backup\Enterprise.bak' GO