gpt4 book ai didi

由于 ODBC 数据流任务错误,SSIS 包在 VS 中有效,但在 SSIS 中无效

转载 作者:行者123 更新时间:2023-12-04 01:52:05 25 4
gpt4 key购买 nike

我们有一个使用 VS2017 设计的测试包,它有一个“数据流任务”对象,其中包含“ODBC 源”和“ODBC 目标”对象。该程序包只是尝试将记录从表 'Table_1' 移动到名为 'Test' 的同一个 SQL Server 2014 数据库中的表 'Table_2'。

当我们从 VS2017 执行包时,它运行成功。

但是,当我们将该包导入到 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".

关于是什么导致这些错误的任何想法?

几个侧面问题/有趣的笔记:
  • 为什么引用 Attunity?我们没有使用 Attunity 连接器。我们正在使用 ODBC。我什至没有在这台机器上安装 Attunity(我曾经安装过但卸载了它)。
  • 如果您不将 DataFlow 任务与 OBDC 驱动程序一起使用,而只是在运行简单的“INSERT INTO Table_2...”语句的包中使用简单的“执行 SQL 任务”对象,则该包将在 SSIS 中运行。使用数据流任务有问题。

  • 屏幕截图:

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

    enter image description here

    包被导入到 SSIS 中:

    enter image description here

    在 SSIS 中运行它时,它失败并出现以下错误:

    enter image description here

    最佳答案

    从其他帖子中找到答案。

    首先,将项目的 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.

    如果出现该错误,请按照以下链接和屏幕截图所示,将项目的 Run64BitRuntime 属性更改为“True”。

    ‌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?forum=sqlintegrationservices

    enter image description here

    关于由于 ODBC 数据流任务错误,SSIS 包在 VS 中有效,但在 SSIS 中无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52545716/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com