我已经为我的源表编写了一个 hashbytes 语句以在我的 SSIS 负载中使用。
hashbyte 在 SSMS 中有效,我可以看到预期值,但是当我复制到 SSIS OLE DB Source 时,它显示为 System.Byte []。是否有一个原因?
hashbytes('SHA1', ISNULL(cast([EmployeeID] as varchar(100)),'UNKNOWN')+'|'+ ISNULL(cast([FirstName] as varchar(100)),'UNKNOWN')+'| '+ ISNULL(cast([LastName] as varchar(100)),'UNKNOWN')+'|'+ ISNULL(cast([Title] as varchar(100)),'UNKNOWN')+'|'+ ISNULL( cast([BirthDate] as varchar(100)),'UNKNOWN')+'|'+ ISNULL(cast([HireDate] as varchar(100)),'UNKNOWN')+'|'+ ISNULL(cast([Address ] as varchar(100)),'UNKNOWN')+'|'+ ISNULL(cast([City] as varchar(100)),'UNKNOWN')+'|'+ ISNULL(cast([Region] as varchar( 100)),'UNKNOWN')+'|'+ ISNULL(cast([PostalCode] as varchar(100)),'UNKNOWN')+'|'+ ISNULL(cast([HomePhone] as varchar(100)), '未知')) 作为 HASHCOLUMNSource