[英]File being used by process
I have 2 SSIS packages. 我有2个SSIS软件包。 The first one loads an excel file into the DB.
第一个将excel文件加载到数据库中。 The second archives the excel files.
第二个存档excel文件。 When I run both from a master package, the archive package fails with error "The process cannot access the file because it is being used by another process.".
当我同时从主程序包运行时,归档程序包失败,并显示错误“该进程无法访问该文件,因为该文件正在被另一个进程使用。”。
I have tried File.Move, File.Copy then File.Delete, disposing and releasing the connections, pausing for 30 seconds, and I have RetainSameConnection set to false. 我尝试了File.Move,File.Copy,然后是File.Delete,处理并释放了连接,暂停了30秒钟,并且我将RetainSameConnection设置为false。 Any other ideas?
还有其他想法吗?
获取第一个SSID的进程ID,而不是杀死✌️
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.