I am using DTS to FTP a file to a remote server. As part of this process I create an FTP commands file for FTP.exe to use. The last task in my DTS process is supposed to delete this FTP commands from from the hard drive. I use an ExecuteSQL task to do this with the following command:
Execute master.dbo.xp_cmdshell 'del E:\RPProc\RcpsOut\DDFTPCommands.txt'
If I execute the entire DTS package with the Execute button the ExecuteSQL task is executed and the DTS package successfuly completes, but the FTP commands file is not deleted from the hard drive. HOWEVER... If I manually execute the ExecuteSQL task by right-clicking and selecting 'Execute Step', the FTP commands file is deleted.
Obviously I can't have my customer manually delete the FTP commands file whenever this DTS package is run, but I can't figure out why the FTP commands file is not being deleted automatically.
Does anyone know what is happening, here?
Execute master.dbo.xp_cmdshell 'del E:\RPProc\RcpsOut\DDFTPCommands.txt'
If I execute the entire DTS package with the Execute button the ExecuteSQL task is executed and the DTS package successfuly completes, but the FTP commands file is not deleted from the hard drive. HOWEVER... If I manually execute the ExecuteSQL task by right-clicking and selecting 'Execute Step', the FTP commands file is deleted.
Obviously I can't have my customer manually delete the FTP commands file whenever this DTS package is run, but I can't figure out why the FTP commands file is not being deleted automatically.
Does anyone know what is happening, here?