Sql Query output in excel format

  • Hi,

    I have some doubt about , how to save the query output in excel file.

    suppose when i fire this query from query window.

    select 1 as 'd','pankaj' as 'name'

    then the result will be saved in excel file .

    is it possible , how can i do it.

  • You can save a grid as CSV or you can select the entire grid and paste it into Excel. There is a setting in options that will copy the field names as well.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • You could also use SSIS to export the data by query to an Excel file. Just right-click on the database and select "Tasks" then "Export Data...". That will bring up a Wizard you can walk through and push your result set to an Excel file.

    Not as quick as the copy/paste method though!

  • pankaj.kuchaliya (10/5/2010)


    Hi,

    I have some doubt about , how to save the query output in excel file.

    suppose when i fire this query from query window.

    select 1 as 'd','pankaj' as 'name'

    then the result will be saved in excel file .

    is it possible , how can i do it.

    Hi

    In grid there will be results to text,results to grid,results to file use have to choose results to file in this case to store what ever format u need, then execute it and save it in your desired name.

    Thanks

    Parthi

    Thanks
    Parthi

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

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