SQL Server Job to Excel

  • Hi All,

    Is there any possibility to load the result of a Job to a Excel sheet, and that excel sheet should contain the all columns which will get when we ran the query in QA.

    I have tried it by giving the a path for excel sheet in Job results, but the result contain in only one column.

    Thanks in Advance

    Thank You.

    Regards,
    Raghavender Chavva

  • Do a search on exporting to Excel file using OPENROWSET and you should find a solution to your question.

  • Create an Excel file named testing having the headers same as that of table columns and use these queries

    1 Export data to existing EXCEL file from SQL Server table

    insert into OPENROWSET('Microsoft.Jet.OLEDB.4.0',

    'Excel 8.0;Database=D:\testing.xls;',

    'SELECT * FROM [SheetName$]') select * from SQLServerTable

    MJ

  • Thank you for your help.

    Now I am able to do it.

    Thank You.

    Regards,
    Raghavender Chavva

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

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