mysql - 如何在 SSIS 中使用 Dynamic AX 源组件编写联接

标签 mysql sql-server ssis

SELECT * FROM %1  JOIN %2  ON %1.GROUPID==%2.GROUPID   

失败并显示错误消息

[Dynamics AX Source [8]] Error: Attempt to read message string for 0xc02090f5 failed with error 0xc02090f2. Make sure all message related files are registered.

[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Dynamics AX Source returned error code 0xC02090F5. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.

我在 AX 源组件中尝试了两个表连接和多个表连接,真的不知道为什么会抛出错误。任何有关语法的想法都会有所帮助。

最佳答案

SELECT * FROM %1 JOIN %2 WHERE %2.GROUPID == %1.GROUPID

请注意,由于组件的限制,您无法从第二个表(%2 表)中选择列。这意味着 AX 源组件无法从多个表返回列。我猜想,加入的方式就是创建多个AX源组件,通过“合并加入组件”将多个AX源组件加入在一起。

关于mysql - 如何在 SSIS 中使用 Dynamic AX 源组件编写联接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42487642/

相关文章:

php - 在 PHP 中进行异步处理的最佳方式

mysql - DataGrip 图未显示表关系

MYSQL IN 只返回第一行

php - 简单的减法不起作用

mysql - 安装 Mysql2 gem- 10.6 服务器时出错

C#:无法加载文件或程序集 'OpenPop, Version=2.0.4.369, Culture=neutral, PublicKeyToken=null' 或其依赖项之一

r - 将 R 数据帧插入 SQL (RODBC) - 找不到错误表

sql-server - 如何将 SELECT 和 INSERT 命令组合到 SQL Server 中不存在的表中?

SSIS 包未从 SQL 代理作业执行

ssis - 如何使用 SSIS 将包含递增变量值的额外列添加到目标表中?