To back up files and filegroups
Note Backing up files or filegroups requires careful planning; otherwise, the database may not be recoverable.
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
BACKUP | Creating File or Filegroup Backups |
Restoring File or Filegroup Backups |