How to back up files and filegroups (Transact-SQL)

To back up files and filegroups


Note Backing up files or filegroups requires careful planning; otherwise, the database may not be recoverable.


Examples

This example performs a backup operation with files and filegroups for the MyNwind database.

-- Back up the MyNwind file(s) and filegroup(s)

BACKUP DATABASE MyNwind

    FILE = 'MyNwind_data_1',

    FILEGROUP = 'new_customers',

    FILE = 'MyNwind_data_2',

    FILEGROUP = 'first_qtr_sales'

    TO MyNwind_1

GO

  

See Also
BACKUP Creating File or Filegroup Backups
Restoring File or Filegroup Backups  

  


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