简体   繁体   English

使用SSIS 2008从Excel导入多个表-排他性

[英]Importing Multiple Tables from Excel Using SSIS 2008 - Exclusivity

I'm writing a SSRS report that is the direct result of a SSIS package. 我正在写SSRS报告,它是SSIS包的直接结果。

It is my understanding that SSIS must have exclusive access to Excel files for import. 据我了解,SSIS必须具有对Excel文件的独占访问权才能导入。 Is there any way around this? 有没有办法解决?

If I can't read what was there as of the last save, can I at least send an e-mail notifying the user of the failure? 如果我看不到上次保存时的内容,至少可以发送一封电子邮件通知用户失败了吗? How do I catch that error? 如何捕捉该错误?

This seems like a limitation of the Jet connection engine and Excel, by default, opens files in exclusive access mode. 这似乎是对Jet连接引擎的限制,默认情况下,Excel以独占访问模式打开文件。 If there is only one or two people using the file, then you may be able to have them open the file in shared access mode to avoid this error. 如果只有一个或两个人在使用该文件,则可以使他们以共享访问模式打开文件,以避免此错误。 Or, since this is ultimately a Jet database engine connection, you might be able to specify in your connection string that you open it in Mode=Read. 或者,由于这最终是Jet数据库引擎连接,因此您可以在连接字符串中指定以Mode = Read打开它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM