How to fill 10 different query results with different columns and columns in a text file in MSSQL

advertisements

I am doing a project to generate data extracts on a daily basis. I have ten different queries with different columns and also the number of columns are also different. the database is MSSQL server 2008 R2 and I tried SSIS packet to accomplish the result.I used the components datasource, then a sort and the result of the sort to merge and then to text file. But I am getting error when combining the result saying the columns are different or something. Can anyone suggest a solution or is there any other way to accomplish this.
thanks,
Sivajith


Can you please provide error message? The merge component can merge data flows with various amount of columns, by selecting for the input columns.