In an SSIS package I need to put the content of 2 SQL queries in 2 sheets of an Excel file. The results of the 2 queries are in 2 object variables, I'm wondering if I can use a Data Flow Task for this. Issues :
- I don't know what columns I will have (number of columns, names of columns), the query is created at the moment of the execution
Set @qry = 'Select ...' EXEC(@qry) - I have the same problem with the Excel file, I can't have a precise Template, all I know about the Excel File is that we'll have 2 sheets. Is this possible? If not, is there another way (Script task, SSRS...)?