Hi folks,
A challenging problem (for me!).
I need to import any one of 25 large fixed width text files when the following two conditions are met:
1. The file exists (has been downloaded) and
2. The download process has finished writing to the file
(file not in use).
Basically, when the file is available for import, I want a process to be triggered, or I want to trigger a process that checks for availability periodically.
I use BCP to import these files when they are available, since I don't know a way to automate this process. I have tried the following:
1. I have tested the file existence using a VbScript filesystmeobject..if I could test for file in use, and make the step wait five minutes if the file is in use, this would be the perfect solution because I could put it in DTS (but I don't know how).
2. I have use xp_fileexist, but it doesn't help with the file in use problem.
This is a plaguing problem, so any help you can provide would be appreciated! Thanks,
Dan
A challenging problem (for me!).
I need to import any one of 25 large fixed width text files when the following two conditions are met:
1. The file exists (has been downloaded) and
2. The download process has finished writing to the file
(file not in use).
Basically, when the file is available for import, I want a process to be triggered, or I want to trigger a process that checks for availability periodically.
I use BCP to import these files when they are available, since I don't know a way to automate this process. I have tried the following:
1. I have tested the file existence using a VbScript filesystmeobject..if I could test for file in use, and make the step wait five minutes if the file is in use, this would be the perfect solution because I could put it in DTS (but I don't know how).
2. I have use xp_fileexist, but it doesn't help with the file in use problem.
This is a plaguing problem, so any help you can provide would be appreciated! Thanks,
Dan