Wednesday, September 26, 2007

The process cannot access the file because it is being used by another process

The process cannot access the file because it is being used by another process


You may face the above error when you are accessing a file in a script component in SSIS and trying to change the properties of the file in another transformation with out closing the file in the prior script component.


Example : 


Dim myFS As System.IO.FileStream
....
....
myFS.Close()

No comments:

Post a Comment

Featured Post

SQL Server AWS Migration BCP

stored procedure to generate BCP scritps to migrate the SQL Server database. Developed this stored procedure on my labs to simulate t...

Contributors