代码之家  ›  专栏  ›  技术社区  ›  ptownbro

SSIS包在VS中工作,但在SSIS中不工作,因为ODBC数据流任务错误

  •  2
  • ptownbro  · 技术社区  · 6 年前

    我们有一个使用VS2017设计的测试包,它有一个“dataflowtask”对象,其中包含“ODBC Source”和“ODBC Destination”对象。该包只是试图在同一个名为“Test”的SQL Server 2014数据库中将记录从表“table_1”移动到表“table_2”。

    但是,当我们将该包导入SSIS,然后直接从那里运行该包时,会收到以下错误消息(请参阅下面的屏幕截图):

    The version of ODBC Destination, clsid {51B271F1-3B7E-4875-870E-62A0456FE2AD} is not compatible with this version of the DataFlow.
    The version of ODBC Source, clsid {F8600F4A-E321-42F4-AA59-DA00FA374EA5} is not compatible with this version of the DataFlow.
    The component is missing, not registered, not upgradeable, or missing required interfaces. The contact information for this component is "ODBC Destination;Connector for Open Database Connectivity (ODBC) by Attunity; Attunity Ltd.; All Rights Reserved; http://www.attunity.com;7".
    

    关于是什么导致这些错误,有什么想法吗?

    1. 为什么它引用了Attunity?我们没有使用Attunity连接器。我们正在使用ODBC。我甚至没有在这台机器上安装Attunity(我曾经安装过,但卸载过)。
    2. 如果不将数据流任务与OBDC驱动程序一起使用,而只在运行简单的“INSERT INTO Table_2…”语句的包中使用简单的“Execute SQL task”对象,则包将在SSIS中运行。使用数据流任务有问题。

    在这里您可以看到该包在VS2017中成功运行:

    enter image description here

    包已导入SSIS:

    enter image description here

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  2
  •   ptownbro    6 年前

    从其他帖子找到了答案。

    首先,将项目的TargetServerVersion属性更改为要用于SSIS的SQL Server版本,如下面的链接和屏幕截图所示。

    The version of ODBC source is not compatible with this version of the dataflow

    SSIS: version of ODBC source is not compatible with this version of the dataflow

    enter image description here

    执行此操作后,可能会遇到如下错误:

    [ODBC Destination [2]] Error: The AcquireConnection method call to the connection manager MyConnectionManager failed with error code 0xC0014009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    

    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/eb9e6826-b650-433b-bab9-16da214efd99/the-acquireconnection-method-call-to-the-connection-manager-mydatabaseodbc-failed-with-error-code?论坛=sqlintegrationservices

    enter image description here