I have read about issues of collation when sorting in SQL vs. SSIS.
In my case, I am performing two SSIS sorts between 2 datasets:
Dataset1
email id flag
zzz-yyyy.lastname@hotmail.com 1 1
ZZZYYYY.LASTNAME@HOTMAIL.COM 1 2
Dataset2
ZZZYYYY.LASTNAME@HOTMAIL.COM 1
I sorted both datasets in SSIS with ignore case check for email address. I did a merge join (left join between dataset2 and dataset1) between the two datasets based on id,email. The expected result is:
ZZZYYYY.LASTNAME@HOTMAIL.COM 1 2
I am getting:
ZZZYYYY.LASTNAME@HOTMAIL.COM 1 null
The left join is returning null for the flag column as if they do not match.
If I remove row 1 of dataset1, it works fine.
If I have ignore case in the sort unchecked it works but I need it checked for other cases.
I am not mixing SQL and SSIS sorts. Everything is within SSIS sorts.
Any help is appreciated.
Thanks.
In my case, I am performing two SSIS sorts between 2 datasets:
Dataset1
email id flag
zzz-yyyy.lastname@hotmail.com 1 1
ZZZYYYY.LASTNAME@HOTMAIL.COM 1 2
Dataset2
ZZZYYYY.LASTNAME@HOTMAIL.COM 1
I sorted both datasets in SSIS with ignore case check for email address. I did a merge join (left join between dataset2 and dataset1) between the two datasets based on id,email. The expected result is:
ZZZYYYY.LASTNAME@HOTMAIL.COM 1 2
I am getting:
ZZZYYYY.LASTNAME@HOTMAIL.COM 1 null
The left join is returning null for the flag column as if they do not match.
If I remove row 1 of dataset1, it works fine.
If I have ignore case in the sort unchecked it works but I need it checked for other cases.
I am not mixing SQL and SSIS sorts. Everything is within SSIS sorts.
Any help is appreciated.
Thanks.