views:

458

answers:

2

Hopefully this is easy to explain, but I have a lookup transformation in one of my SSIS packages. I am using it to lookup the id for an emplouyee record in a dimension table. However my problem is that some of the source data has employee names in all capitals (ex: CHERRERA) and the comparison data im using is all lower case (ex: cherrera).

The lookup is failing for the records that are not 100% case similar (ex: cherrera vs cherrera works fine - cherrera vs CHERRERA fails). Is there a way to make the lookup transformation ignore case on a string/varchar data type?

+3  A: 

There isn't a way I believe to make the transformation be case-insensitive, however you could modify the SQL statement for your transformation to ensure that the source data matches the case of your comparison data by using the LOWER() string function.

The Lazy DBA
Perfect solution - I put a derived column transform before my lookup that just applied LOWER() to the column. Works great :-)
Sangheili
bingo! nice job lazy DBA.
Devtron
A: 

you have to change the source and as well look up data, both should be in same case type.

amal