比较 SSIS 中条件拆分中的 2 个 Guid [英] Compare 2 Guids in a conditional Split in SSIS

查看:26
本文介绍了比较 SSIS 中条件拆分中的 2 个 Guid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 SSIS 中构建条件拆分,以确定一行是新的还是更新的.我要比较的列之一是 guid,它允许为空.

I am building a conditional split in SSIS to figure out if a row is new or updated. One of the columns I want to compare is a guid and it allows null.

我尝试比较像 COLUMN != Destination_COLUMN 这样的列.但是,我不允许比较 guid.我对解决方法的想法,因为我在数据库中有很多 guid.

I tried to compare the column like COLUMN != Destination_COLUMN. However I am not allowed to compare guids. Thoughts on workarounds as i have a lot of guids in the DB.

谢谢

推荐答案

使用派生列转换来创建 GUID 的字符串版本,并比较字符串列而不是 GUID 列.

Use the derived column transformation to create string versions of your GUIDs, and compare the string columns instead of the GUID columns.

这篇关于比较 SSIS 中条件拆分中的 2 个 Guid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆