Instantly share code, notes, and snippets.

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