0

在 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)

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

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

4

1 回答 1

0

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

有关查找缓存模式的更多信息,请参阅此博客文章

于 2012-08-07T11:26:45.897 回答