alexfwalker
Registered User.
- Local time
- Today, 23:03
- Joined
- Nov 2, 2011
- Messages
- 12
I have an unusual problem relating to the import of files.
I need to set up a database to pick up a file every few minutes from a network location. I won't profess to know exactly how to do this yet, but I'm familiar with file imports and am confident that this won't be too trick in itself.
However, the real problem that I can foresee is Access attempting to import a file which is only part written. A sales order processing system will be writing a potentially large file to the network every few minutes or so, which the Access database will pick up. Typically it takes 5-10 seconds for these files to be written, so there is a more than high chance that at some point the import process will run at a time when the file that it's importing is part written.
How can I prevent this?!
I had considered a process whereby the SOP system begins writing the file as a .tmp file, then renames it to .txt once the file is complete, but the system doesn't have the capability to rename once written to the network.
I need to set up a database to pick up a file every few minutes from a network location. I won't profess to know exactly how to do this yet, but I'm familiar with file imports and am confident that this won't be too trick in itself.
However, the real problem that I can foresee is Access attempting to import a file which is only part written. A sales order processing system will be writing a potentially large file to the network every few minutes or so, which the Access database will pick up. Typically it takes 5-10 seconds for these files to be written, so there is a more than high chance that at some point the import process will run at a time when the file that it's importing is part written.
How can I prevent this?!
I had considered a process whereby the SOP system begins writing the file as a .tmp file, then renames it to .txt once the file is complete, but the system doesn't have the capability to rename once written to the network.