How to create a differential database backup (Transact-SQL)

To create a differential database backup


Important It is not possible to create a differential database backup unless the database has been backed up first.


  1. Execute the BACKUP DATABASE statement to create the differential database backup, specifying:
  2. Optionally, specify:

Important Use extreme caution when using the FORMAT or INIT clauses of the BACKUP statement as this will destroy any backups previously stored on the backup media.


Examples

This example creates a full and a differential database backup for the MyNwind database.

-- Create a full database backup first.

BACKUP DATABASE MyNwind

    TO MyNwind_1

    WITH INIT

GO

-- Time elapses.

-- Create a differential database backup, appending the backup

-- to the backup device containing the database backup.

BACKUP DATABASE MyNwind

    TO MyNwind_1

    WITH DIFFERENTIAL

GO

  

See Also
BACKUP Creating and Restoring Differential Database Backups
Using Differential Database Backups with Transaction Log Backups  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.