Is there a way to use the xp_fileexists to check for files and then start a sql job in agent? I’m running a batch file in agent. Everyday our service department sends us flat files usually before 8pm but occasionally they will (sometime won’t) send the files after 8 pm. I am running the batch file in agent at 9 pm so if they do send the files then it runs perfect but if they don’t then the program hangs (don’t run). I usually have to cancel the job manually and then after receiving the files I start the job manually.
↧