TSQL Backup / Restore


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. BACKUP DATABASE @dbname
  2. TO DISK = @filelocation
  3. GO
  4.  
  5. RESTORE DATABASE @dbname
  6. FROM DISK = @filelocation
  7. GO

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.