Hi Spiceheads!
I have a rather frustrating situation. I have a user who runs a batch file via scheduled task twice a day to retrieve some customer data and output it to a text file. Another task will then send the text file out via FTP to another site. The problem is the file is created and then after some time it vanishes, so the FTP task fails. It runs at 9:14 every morning and night. It ran last night and the customer.txt file was there. Come this morning the file is no longer there and cannot be found anywhere.
If he runs the job manually it will work as intended.
Any ideas at all on what to look for? I am not terribly good with SQL and could use some help. *I hope this makes sense lol
He is running Version 10.50.4000.0 on server 2008r2
Here is the batch code: names edited for privacy
sqlcmd -S serverhere -d Live -E -Q "execute...