【问题标题】:SSIS lookup transformSSIS 查找转换
【发布时间】:2012-08-07 00:48:08
【问题描述】:

在 SSIS 中,我有一个查找转换,它执行仅将新数据插入表中的功能,称为 tableY。所以过程如下:

0) Aggregate (group by) the primary key for the input row
1) Do a lookup with the current input row on tableY using the primary key
2) Insert the input row if there is not a match (the current row does not exist in tableY)

我收到“违反主键列的完整性约束”的错误

这怎么可能,因为所有输入都是唯一的,并且转换的输出是“查找不匹配输出”?

【问题讨论】:

  • 你有复合主键吗?

标签: ssis transform lookup bids


【解决方案1】:

您的查找转换可能正在使用 TableY 的缓存副本。尝试在查找转换编辑器上选择“无缓存”(但加载时间可能会受到影响)。

有关查找缓存模式的更多信息,请参阅this blog post

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-04-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-03
    相关资源
    最近更新 更多