Hi,
I have an FTP site where a remote host puts giant text files every so often. I need to programetically determine if the file exists and if the remote copy process has completed so I can then run some code to retrieve the file. Retrieiving the file is no problem and determining if the file exists is no problem.
My problem lies with determining if the copy process has completed. It seems Windows allocates the full file size in the FTP site, and as the file is copying the size doesn't increase, as it has already allocated the full file size. But in reality the file has not completed the copy process yet.
How can I determine if the file has completed and is ready to be bulk inserted into sql server?
As a separate issue, it sure would be nice to have some routine kick off a job in sql server every time a new file shows up in the ftp site, though I have no idea how to implement this. Seems I would need some type of daemon running in windows to monitor files in the ftp site and then call a job through a command line.
Thanks for any help,
Paul
Thanks,
Paul
I have an FTP site where a remote host puts giant text files every so often. I need to programetically determine if the file exists and if the remote copy process has completed so I can then run some code to retrieve the file. Retrieiving the file is no problem and determining if the file exists is no problem.
My problem lies with determining if the copy process has completed. It seems Windows allocates the full file size in the FTP site, and as the file is copying the size doesn't increase, as it has already allocated the full file size. But in reality the file has not completed the copy process yet.
How can I determine if the file has completed and is ready to be bulk inserted into sql server?
As a separate issue, it sure would be nice to have some routine kick off a job in sql server every time a new file shows up in the ftp site, though I have no idea how to implement this. Seems I would need some type of daemon running in windows to monitor files in the ftp site and then call a job through a command line.
Thanks for any help,
Paul
Thanks,
Paul