Tag Archives: Automate Backup with SQLCMD

Automate Backup Process With SQLCMD

Automate Backup Process — can create SQL Scheduled Task that will call and execute this SQL (everynight for example) declare @Dt_DateAndTime Varchar(100), @backupfile sysname, DECLARE @ThreeDaysAgo VARCHAR(50) select @Dt_DateAndTime = convert(char(8), getdate(), 112)+”+ Replace(convert(char(12), getdate(), 14),’:’,”) select @Dt_DateAndTime select @backupfile … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment