Skip to content

Instantly share code, notes, and snippets.

@sqldeployhelmet
Created October 4, 2018 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sqldeployhelmet/9bf1402dbd76fee0077d994b229f02eb to your computer and use it in GitHub Desktop.
Save sqldeployhelmet/9bf1402dbd76fee0077d994b229f02eb to your computer and use it in GitHub Desktop.
EXEC master.dbo.xp_backup_database @database = '<database name>',
@filename = 'Y:\SQL_BACKUPS\<name of backup file>', @filegroup = '<filegroup to backup>'
, @compressionlevel = 4, @cryptlevel = 8, @encryptionkey = N'IMMAENCRYPTCHYU'
, @verify = 1, @returndetails = 1, @init = 1, @with = 'CHECKSUM';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment