Filegroup backup in MS SQL

MSSQL-Feature-Image
How to list table and filegroup relation in T-SQL:
How to Filegroup backup in GUI:
  1. Open “SMSS” > expand “Databases” > right-click database > select “Properties”
  2. Select “Options” > make sure “Full” or “Differential” in “Recovery model:”
  3. Right-click database > select “Tasks” > select “Back Up…”
  4. Select “General” > select “Full” or “Differential” in “Backup type:”
  5. Select “Files and filegroups:” in “Backup component:”
  6. Click files and/or filegroups which you need to backup.
  7. At “Destination” click “Add…” to add multi backup file.
  8. If we take File/Filegroup backup out of scheduler, we can click “Copy-only backup” checkbox.
  9. Select “Media Options”, we can select backup to existing media set (Append or Overwrite) or new media set.
  10. There are some “Reliability” setting: “Verify backup when finished”, “Perform checksum before writing to media” and “Coninut on error”
  11. Select “Backup Options”, we can assign the name, description, expire datetime to media set.
  12. We can also verify backup after backup.
  13. We can setup to Compression the backup.
  14. We can encrypt the backup media.
How to Filegroup backup in T-SQL:

Author: Joe Chan