Syntax of BACKUP DATABASE in SQL โ
BACKUP DATABASEย <database_name>
TO DISKย = โfilepathโ;
Example of BACKUP DATABASE in SQL-
BACKUP DATABASEย ย Northwind
TO DISK =ย โC:\backups\Northwind.bakโ;
โThis SQL statement will create a full back up of the existng database โNorthwindโ to C: drive.
Syntax of BACKUP DATABASE ..WITH DIFFERENTIAL in SQL โ
BACKUP DATABASEย <database_name>
TO DISKย = โfilepathโ
WITH DIFFERENTIAL;
Exampleย of BACKUP DATABASE ..WITH DIFFERENTIAL in SQLโ
BACKUP DATABASEย ย Northwind
TO DISK =ย โC:\backups\Northwind.bakโ
WITH DIFFERENTIAL;
โThis SQL statement will create a DIFFERENTIAL back up of the existng database โNorthwindโ to C: drive.
Note-
Northwind sample database is used for example.
Leave a Reply