I have been trying to export the output of a SqlServer sql query (stored procedure) to a text file. I achieved it using a Data Flow task with an OLEDB source and a Flat File Destination.
I would also like to get the Column headers along with the query result in the text file , but I cannot figure out how I can include the column headers.
I would like to do this dynamically from within SSIS
Is there anyone who knows how to do this ?
Special Note: Do not use a select statement in a stored proc as your data source. Ref: http://www.jasonstrate.com/2011/01/31-days-of-ssis-no-more-procedures-2031/
Please respond back.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With