Export multiple query results with different columns (name and number of columns) into one sheet of CSV file

  • CSV files are text files. They do not have sheets.

    Three separate data flows, in series, to the same file, should do it.


  • its also possible with OpenXML and a script task, but the learning curve to learn to get that right is pretty steep.
    once you have it though, you can decide whether multiple query results go on the same sheet, different worksheets, or a combination.

    unless you need formatting and colors and the like, i like Phil's suggestion of simple. clean, CSV files.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply