Extract result set from a execute sql task and store it in a excel file?

1.5k views Asked by At

I have a execute SQL task, that needs two input variables and a output variable to run. The SP returns a table that i'm storing in ResultSet parameter. I want to store the values in this ResultSet parameter in a excel file. From my internet research(similar SO question, Export data from SQL Server to Excel), i found a few articles where they create a ADO.NET sources. Run a simple select query inside it and use excel destination. In my case, the parameters to SP have to be passed as variable.Hence, i can't use the harcoded SQL queries. Can anyone please point me in the current direction? My knowledge of SSIS is very limited to be doing a good google search.

1

There are 1 answers

0
Gigga On

If the question is, how to store values from ResultSet parameter to Excel, you have to create a custom data source: https://www.timmitchell.net/post/2015/04/20/using-the-ssis-object-variable-as-a-data-flow-source/