How do you convert in to Excel file

  • I have question regarding to the t-sql query.

    once i run query in Query Analyzer. once query is run how do i convert the out put in to my EXCEL file with Column header too?

    Thank You,

  • Set output to text and tab format*, execute query, copy and paste results.

    * Done in Tools, Options

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Set output to grid and query options (context menu, result, grid) to include the header in copy or save.

    Cut and Paste the result-grid to Excel.

  • quoteinclude the header in copy or save

    Not possible to include headers in copy or save for Grid results in QA (Query Analyzer)

    Alternative to the copy and paste for Text results, you could Save As to produce a file for Excel (but beware the 'Row(s) affected' message will be included)

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Thanx guys. Done it... It works

    Thank You

Viewing 5 posts - 1 through 4 (of 4 total)

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