【发布时间】:2020-10-14 14:17:30
【问题描述】:
我创建了一个新的 SSIS 包,它使用 Visual Studio 和 ODBC 连接可以正常工作:
但是当我尝试使用 SQL Server 下的作业执行它时,我遇到了这个错误:
Copie t_agence:Error: The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "ODBC Source;Microsoft Corporation; Microsoft SQL Server; (C) Microsoft Corporation; All Rights Reserved; http://www.microsoft.com/sql/support;1".
Copie t_agence:Error: The managed pipeline component "Microsoft.SSISODBCSrc" could not be loaded. The exception was: Could not load type 'Microsoft.SSISODBCSrc' from assembly 'Microsoft.SqlServer.PipelineHost, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'..
我不记得需要在 SQL Server 下安装 ODBC 驱动程序才能允许使用 ODBC 连接执行包... 请帮我看看这个好吗?
【问题讨论】:
-
您需要确保在部署包的服务器上安装了 PostgreSQL ODBC 驱动程序。您还需要在服务器上设置/创建该 ODBC 连接,当您在服务器上执行此操作时,将其设置为“系统 DSN”
-
还要注意 64 位 verse 32 位。 SQL Server 将以 64 位执行它,这意味着您需要服务器上的 64 位驱动程序,并且您需要使用 64 位 ODBC 管理器设置 ODBC。或者将作业步骤配置为使用 32 位运行时。
-
我认为您指出了一些问题,我安装了 64b 驱动程序但没有安装 32b !我明天去办公室看看,谢谢你的想法
-
感谢@TimMylott 的想法,但它没有用:(我已经在服务器上安装了 psqlodbc_12_02_0000-x64 和 psqlodbc_12_02_0000-x86 但仍然有相同的错误消息
-
服务器上的DSN配置在哪里?检查一下。 odbc admin 32bit/64bit 有 2 个版本。在系统 DSN 选项卡中进行设置。
标签: sql-server ssis odbc