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

标签 sql-server visual-studio-2010 visual-studio ssis sql-server-2012

我有一台能够使用导入向导创建和运行 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/

相关文章:

sql-server - 如何使用 LINQ-to-SQL 查询 sys 表?

visual-studio-2010 - VS2010 : Exclude a project from build

c# - 更改图表中的图例文本?

visual-studio - Windows 8 Developer Preview 捆绑了哪个版本的 Visual Studio 11?

sql-server - 将 SQL Server Management Studio Express 导出到 GoDaddy 时出现问题

php - mysql - 在 sql 中选择 UNTIL

c# - 在构建路径中包含目录

visual-studio - typescript 错误 : "Cannot find name" in Visual Studio

visual-studio - 为什么 Visual Studio 的模块列表中缺少加载的 dll?

sql - 为什么这个触发器改变了我的查询速度?