• Dave.Valentine (3/20/2013)


    Hi Debanjan,

    You can do this a couple different ways. You can use and XML PATH query with a DB Source, or you can get creative with a script component. See the following blog post.

    http://microsoft-ssis.blogspot.com/2012/10/creating-comma-separated-list-of.html

    Dave

    Recursive CTE would work similarly. Personally - I'd just stage the data and then extract it using the suggestion that Dave mentions or a recursive CTE. I always like staging my flat files before any transformations occur just because it's so much easier to troubleshoot things.