GET-IT: TEAMS DAY | 1-Day Free Virtual Conference all about Teams. Here on Petri.com - 8/12/20 GET-IT: TEAMS DAY - 8/12/20

How can I use FOR FILES to delete old backup files from a remote server

Home Forums Scripting General Scripting How can I use FOR FILES to delete old backup files from a remote server

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    sql_lover
    Member
    #164958

    I do have the need of running a TSQL job from a remote server in order to delete old backup files. The command runs fine when running via command prompt, same remote server. But it fails when it’s being executed as an added step inside a TSQL job.

    Here is the screenshot of the TSQL job and step:

    PushD.png

    The job runs and gives no errors but it does not delete any file. Why?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.