Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Lookup giving wrong results

$
0
0

I am using SSIS 2008 and I am doing a lookup on a customer table which has like 50K records . I am doing a lookup on the Firstname , lastname & addressid .

In both Source as well as Lookup query

for Firstname & last name lookup columns  I am using lower , ltrim , rtrim  & isnull functions like this lower(ltrim(rtrim(isnull(firstname ,'')))) .

I am doing a Full cache ( as I am doing lookup on 50K records ) .

I am getting duplicates ( I am already having this customer  Firstname = A  , Lastname =  B    addressid =  12345 , again the lookup does not find a match because I get it as a , b , 12345 ) . When I go back to test this record and put a where clause to filter only this particular record it is working fine .

Any help will be greatly appreciated

Thanks,


shek


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>