Handling file access locks while file is being built
问题 I have a [SQL 2008] SSIS package that takes a CSV text file and moves it to a separate folder. Once it is in this folder, I import the data to SQL. The text file is being automatically generated by an outside program on a periodic schedule. The file is also pretty large, so it takes a while (~10 minutes) for it to be generated. If I attempt to move this file (using a File System Task) WHILE the file is still being built, I get this error message: "The process cannot access the file because it