views:

53

answers:

2

I'm looking for a way in SSIS (2005) to create a CSV file from 2 or more different layout OLE DB sources. Again, the column layout is different for all the sources.

EX.

Source 1
A,1234,ABCD,1234

Source 2
A,ABCD,1234

Final CSV Result File
A,1234,ABCD,1234
A,ABCD,1234

+2  A: 

There are a couple of options. You could combine the results from your inputs into one column and include commas in your data and then merge the two sources together. It's not a great solution, but it would meet your business needs as stated.

Registered User
This is what I ultimately ended doing. I was looking for something more elegant though.
Joel
A: 

Combine the two inputs with a Union All component leading to your Destination component. In the union, you'll have to choose which input columns should go to which output columns.

John Saunders
columns do not match between the 2 sources. UNION works with identic column/data type definition.
Joel
My current environment doesn't do BI, so I couldn't finish this one for you. But I bet if you add dummy columns to each data flow, you could make it work.
John Saunders