I want to export the data into excel sheet along with their column names

  • When I used bcp function the resultset of the query was alone copied into excel file. The column names were not copied.

  • I think you should have column names in you Excel file to map the column while exporting.

  • But if i give column names in the excel file , when i add the data to excel using bcp the column names are overwritten. Is there any way to append data to excel file using bcp?

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

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