Hi,
I have Script Component in the Transformation phase that returns me values like
NO, OTH, OWN (comma separated string coded value)
Now I want to use the Lookup component (preferably or any other task really) to get the description by looking up a table in another database. So eventually my string needs to look something like this
None, Other, Owned (comma separated string decoded value)
I tried using the Script component again to do this, but failed miserably. I am having such a hard time connecting to another database within the VB.NET script designer. When I tried using the Lookup task, I ONLY end up getting the first value returned. So instead of
None, Other, Owned
I end up getting
None
Please help me with this issue. I have been struggling for a while with this issue now.
Thank you,
Shiva

Huge issue with the Lookup problem
jziemian
F1rst_Kn1ght
footballdirector
noon1
Congratulation on becoming the MVP!!! You really deserve it....
I have three columns what come to me with Yes/NO values in the pipeline. So I am concatenating them into one value as my destination has only one column for the 3 input columns. But before I actually dump in the data to the posting table, I need to do a lookup to figure out the description for the codes. So that is essentially what I am trying to figure out. How can I accomplish something like this using SSIS
Thank you,
Shiva
Ovidiu Platon [MSFT]
I don't quite understand how the LOOKUP can return any matches at all if your incoming row contains the string value "NO, OTH, OWN". Perhaps I'm not understanding.
-Jamie
Massy
Thank you very much. Its very nice of you to say so.
Can you not do the lookup prior to doing the concatenation
-Jamie
William Kirchhoff
Here is a better explanation of my problem really.....
Here is the problem I am facing currently with SSIS that I need help on ASAP
My Source dataset looks like this
WTR_NO WTR_OTH WTR_OWN
------------------------------------------------------------------
1 0 0
1 1 0
Now, this is for a Water attribute that has values of 0 and 1 in the dataset above. My posting table contains
WTR_DESC
------------------
NONE
NONE, OTHER
The description for the codes NO, OTH, OWN etc comes from a lookup table that is structured like this
Amenity_Code Amenity_Description
------------------------------------------------------
NO NONE
OTH OTHER
OWN OWNED
I have 100s of Amenities like Water, Appliance, Kitchen etc. So hard coding the values in something like a script task seems very cumbersome.
So, is it possible to send in something like ‘NO, OTH’ as a variable and then generate my ‘NONE, OTHER’ after performing a look up Notice I have the final posting value as a concatenated comma separated dataset. Maybe a custom SSIS transformation task would be the best fit, but I don’t know how to write the custom tasks yet and I want to see if SSIS can do something like this for me with the existing tasks it has already in the transformation area.
Thank you,
Shiva