SSIS ODBC 源预览数据但执行包时失败
SSIS ODBC Source Previews Data But Fails When Executing Package
这对我来说真的很奇怪。我在 SSIS 中使用 ODBC 连接作为数据源。我可以预览数据,但是当我尝试执行包时(仍在 Visual Studio 以供开发),我在初始数据源上遇到错误。
我收到的错误是:
There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server.
The AcquireConnection method call to the connection manager xxx failed with error code 0xC0014009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
ODBC Source failed validation and returned error code 0x80004005.
显然我在某种程度上拥有正确的用户名、密码和 ODBC 连接,因为我能够看到数据。但是,当我尝试 运行 包时,我无法建立连接,所以我一定是做错了什么。知道它可能是什么吗?
最终是与安装在机器上的 ODBC 连接 (gsk8ssl.dll) 关联的驱动程序需要添加到本地和服务器上的路径变量中。这是为了连接到 DB2 数据库。
这对我来说真的很奇怪。我在 SSIS 中使用 ODBC 连接作为数据源。我可以预览数据,但是当我尝试执行包时(仍在 Visual Studio 以供开发),我在初始数据源上遇到错误。
我收到的错误是:
There was an error trying to establish an Open Database Connectivity (ODBC) connection with the database server.
The AcquireConnection method call to the connection manager xxx failed with error code 0xC0014009. There may be error messages posted before this with more information on why the AcquireConnection method call failed.
ODBC Source failed validation and returned error code 0x80004005.
显然我在某种程度上拥有正确的用户名、密码和 ODBC 连接,因为我能够看到数据。但是,当我尝试 运行 包时,我无法建立连接,所以我一定是做错了什么。知道它可能是什么吗?
最终是与安装在机器上的 ODBC 连接 (gsk8ssl.dll) 关联的驱动程序需要添加到本地和服务器上的路径变量中。这是为了连接到 DB2 数据库。