gpt4 book ai didi

sql-server - SSIS Excel 连接管理器无法连接到源

转载 作者:行者123 更新时间:2023-12-01 18:31:08 27 4
gpt4 key购买 nike

我有一台能够使用导入向导创建和运行 Excel 导入任务的服务器。我正在尝试使用我在该服务器上开发的 Visual Studio 2010 集成服务包来自动化该过程。

尝试设计包时会出现问题。我添加了一个 Excel 连接并将其指向本地磁盘上的 Excel 文件(我已经使用导入向导成功导入了同一文件)。当我将 Excel 源添加到数据流并指定 Excel 连接时,当我转到“Excel 工作表名称”下拉列表时,我只看到“无法加载表格或 View ”并收到以下错误。

“无法检索连接管理器的表信息。无法使用连接管理器连接到源...”

我在任何地方都找不到记录此错误的信息,而且我不知道它为何失败。该目录已共享给经过身份验证的用户,并且该文件未被使用。

有什么想法可以调试这个错误吗?我知道在 64 位模式下运行可能会出现问题,但这是否适用于开发?

我应该补充一点,它是一个 Excel 2007 文件 .XLSX,并且连接设置为 Excel 2007。

2019-11-08 下面 GavB841 的答案看起来很有希望,如果有人尝试并且有效,请告诉我。 (我不再在这个领域工作。)

最佳答案

It seems like the 32-bit version of Excel was not installed. Remember that SSDT is a 32-bit IDE. Therefore, when data is access from SSDT the 32-bit data providers are used. When running the package outside of SSDT it runs in 64-bit mode (not always, but mostly) and uses the 64-bit data providers.

Always keep in mind that if you want to run your package in 64-bit (which you should aim for) you will need both the 32-bit data providers (for development in SSDT) as well as the 64-bit data providers (for executing the package in production).

I downloaded the 32-bit access drivers from:

After installation, I could see the worksheets

<小时/>

来源:

关于sql-server - SSIS Excel 连接管理器无法连接到源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23896901/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com