Skip to content

Instantly share code, notes, and snippets.

@sqldeployhelmet
Created October 4, 2018 17:58
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/a5510770b4251dec016d2f5c215d7bc7 to your computer and use it in GitHub Desktop.
Save sqldeployhelmet/a5510770b4251dec016d2f5c215d7bc7 to your computer and use it in GitHub Desktop.
EXEC master.dbo.xp_restore_database @database = '', @filename = ''
, @filegroup = '', @encryptionkey = N'IMMAENCRYPTCHYU', @with = 'RECOVERY'
, @with = 'MOVE '''' TO ''''', @returndetails = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment