ODBC 连接没有出现 SSIS

2021-12-30 00:00:00 database odbc sql-server ssis

我在服务器上正确配置了系统 DSN ODBC 驱动程序(连接已经过测试并且工作正常).

I have a System DSN ODBC driver configured correctly on a server (the connection has been tested and works fine).

我有一个 SSIS 包,当我尝试创建 ODBC 连接管理器时,在数据源的下拉列表中找不到我的 ODBC 连接.

I've got an SSIS package, and when I try to create an ODBC connection manager, I can't find my ODBC connection in the drop down of data sources.

我尝试刷新列表,关闭并重新打开解决方案,甚至重新创建解决方案.

I've tried refreshing the list, closing and re-opening the solution, even re-creating the solution.

以前有没有人遇到过这种情况,如果有,您是如何解决的?

Has anyone experienced this before and if so how did you resolve it?

非常感谢

推荐答案

很可能您已经在 64 位 Windows 上配置了系统 DNS,但 SSIS 包在 32 位环境中运行.

Most likely you have configured the system DNS on a 64-bit Windows, but the SSIS package runs in a 32-bit environment.

系统 DSN 只会被可以使用的应用程序和工具看到使用它们——32 位 DSN 用于 32 位应用程序,64 位 DSN 用于64 位应用程序.来源

System DSNs will only be seen by the applications and tools which can use them -- 32-bit DSNs for 32-bit applications, and 64-bit DSNs for 64-bit applications. Source

作为参考,可以在 64 位环境中的以下位置找到 ODBC 管理器窗口.

For reference, the ODBC Administrator Window can be found in the following locations on a 64-bit environment.

  1. C:WindowsSystem32odbcad32.exe(64 位 ODBC 管理员)
  2. C:WindowsSysWoW64odbcad32.exe(32 位 ODBC 管理员)

相关文章