无法在 SSIS 2008 中循环遍历 Excel 2003 文件

发布于 2024-07-30 19:59:13 字数 483 浏览 2 评论 0原文

我正在尝试在 64 位操作系统上执行 SSIS 2008 包并将 Excel 2003 文件导入到 SQL Server 2008。
我已使用连接字符串创建了与 Excel 文件的 OLEDB 连接,该连接字符串从 ForEach 循环容器内的变量检索 Excel 文件。
Run64BitRunTime 设置为 false。
我无法在数据流任务中编辑 OLEDB 源上的 SQL 命令。 它返回一个错误:

错误 2 验证错误。 加载列表暂存表: 加载列表暂存表:SSIS 错误代码 DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER。 对连接管理器“将 OLEDB 列出到 Excel”的 AcquireConnection 方法调用失败,错误代码为 0xC0202009。 在此之前可能会发布错误消息,其中包含有关 AcquireConnection 方法调用失败原因的更多信息。 0 0

感谢任何帮助。

I am trying to execute a SSIS 2008 package on a 64-bit OS and import Excel 2003 files to SQL Server 2008.
I have created an OLEDB Connection to the Excel file with a Connection String that retrieves the Excel file from a variable, inside the ForEach Loop Container.
The Run64BitRunTime is set to false.
I am not able to edit the SQL Command on the OLEDB Source in the Data Flow task. It returns an error :

Error 2 Validation error. Load List Staged Table: Load List Staged Table: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER. The AcquireConnection method call to the connection manager "List OLEDB to Excel" failed with error code 0xC0202009. There may be error messages posted before this with more information on why the AcquireConnection method call failed. 0 0

Appreciate any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

娇女薄笑 2024-08-06 19:59:13

是的,我在 64 位操作系统上运行 BIDS。
我通过在控制流中使用 Excel 连接管理器和在数据流任务中使用 Excel 源(而不是 OLEDB 源)并向变量分配默认工作簿名称来解决该问题。 我还在源代码编辑器中更改了数据访问模式。
感谢您的回复。

Yes, I am running BIDS on a 64-bit OS.
I resolved the issue by using an Excel Connection Manager in the Control Flow and an Excel source in the Data Flow Task instead of the OLEDB source and assigning a default workbook name to the variable. I also made changes to the data access mode in the Source editor.
Thanks for the response.

扬花落满肩 2024-08-06 19:59:13

看一下这个:
http://dougbert.com/blogs/dougbert/archive/2008/06/16/excel-in-integration-services-part-1-of-3-connections-and-components.aspx< /a>

我在 64 位系统上使用 excel 时遇到了问题 - 您必须运行 32 位 dtexec 才能完成这项工作。 我不知道为什么你会在 BIDS 中收到错误。

Check this out:
http://dougbert.com/blogs/dougbert/archive/2008/06/16/excel-in-integration-services-part-1-of-3-connections-and-components.aspx

I've had problems with excel on 64 bit systems - You'll have to run the 32 bit dtexec for the job. Why you are getting errors inside BIDS, I don't know.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文