BACKUP DATABASE my_db
TO DISK = 'C:my_db_backup.bak';
-- The BACKUP DATABASE statement is used in SQL Server to create a full back up of an existing SQL database.
Syntax:
BACKUP DATABASE databasename
TO DISK = 'filepath';
--The SQL BACKUP WITH DIFFERENTIAL Statement
--A differential back up only backs up the parts of the database that have changed since the last full database backup.
BACKUP DATABASE databasename
TO DISK = 'filepath'
WITH DIFFERENTIAL;
SELECT * INTO BackupTable FROM Table
BACKUP DATABASE databasename
TO DISK = 'filepath';