简体   繁体   English

SSIS使用条件拆分比较二进制列

[英]SSIS comparing Binary columns using Conditional Split

I need to compare two varbinary columns using SSIS Conditional Split component. 我需要使用SSIS条件拆分组件比较两个varbinary列。

I cannot use the == operator with varbinary. 我不能将==运算符与varbinary一起使用。

What is the best way to compare two varbinary columns. 比较两个varbinary列的最佳方法是什么?

Have tried converting to TEXT datatype but this gives me various problems. 曾尝试转换为TEXT数据类型,但这给我带来了各种问题。

Two Columns are compared in Script Transformation Component , But do not know how to columns with Binary DataTypes are compared. 在“脚本转换组件”中比较了两列,但不知道如何比较具有二进制数据类型的列。

If anybody answers how binary values can be compared in Scrit component..you will have ur answer. 如果有人回答了如何在Scrit组件中比较二进制值,您将得到答案。

Could you use a Script Component, and compare the varbinary columns using VB.NET or C#? 您可以使用脚本组件,并使用VB.NET或C#比较varbinary列吗? You could then assign a value to a new column in the data flow that lets you identify if they were identical. 然后,您可以为数据流中的新列分配一个值,以便您确定它们是否相同。 The Conditional Split could then use the new column as the condition. 然后,条件拆分可以使用新列作为条件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM