Questions says it all.
Using SSIS I want to be able to loop through all the tables in a given database. For each table I want to be able to export all of the data to a flat file (.txt file) that is pipe-delimited and includes column names (I assume using a flat file destination task).
Is this possible? And if so, how to do it?
Thanks – wg
General pattern would be
1) Create an Execute SQL task that dumps a table list into an object variable
2) Shred the recordset object into schema and table name variables
3) Perform an Execute Process Task to BCP the data into files