In a Data Flow, I have a ADO NET Source which load a table like this:
PersonID, Email
1, "john@hotmail.com"
1, "john_job@yahoo.com"
2, "susan@gmail.com"
2, "sus2010@hotmail.com"
I need to merge emails from each persons and get a result like this:
PersonID, EmailsArray
1, "john@hotmail.com,john_job@yahoo.com"
2, "susan@gmail.com,sus2010@hotmail.com"
How to I do it? Using derived column? a script component? a foreach loop? (in Data Flow doesn’t exist). Thanks in advance.
Use an asynchronous script component with something like the following logic:
MSDN