Instantly share code, notes, and snippets.

Derek Dysart ddysart

  • DJ Dysart Productions LLC
  • Milwaukee, WI
View GitHub Profile
@ddysart
ddysart / backupSCdbs.sql
Last active Sep 6, 2016
Backup All Sitecore dbs
View backupSCdbs.sql
DECLARE @name VARCHAR(50) -- database name
DECLARE @path VARCHAR(256) -- path for backup files
DECLARE @fileName VARCHAR(256) -- filename for backup
DECLARE @fileDate VARCHAR(20) -- used for file name
DECLARE @scPrefix VARCHAR (20) -- Sitecore database prefix
-- specify database backup directory
SET @path = 'C:\Backup\'
-- specify filename format