Last post Aug 14, 2020 06:27 PM by PatriceSc
Aug 14, 2020 10:50 AM|jagjit saini|LINK
When i write below cmd in Sql it works . When i execute Batch file it does not.
BACKUP DATABASE [DPL] TO DISK = N'D:\Dpl.bak'
WITH NOFORMAT, INIT, NAME = N'MyDataBase1 Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
Aug 14, 2020 06:27 PM|PatriceSc|LINK
Always tell what happens (ie which error message do you have) than just that "it doesn't work".
You are using SqlCmd or you have no experience at all with batch files and though it could contain just SQL statements ? If related to your other thead about launching a task, it maybe easier to discuss that in a single discussin thread.