locked
Backup RRS feed

  • Question

  • User1979860870 posted

    Hi

      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

    Thanks

    Friday, August 14, 2020 10:50 AM

All replies

  • User753101303 posted

    Hi,

    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.

    Friday, August 14, 2020 6:27 PM