Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting a table to a csv file with headers on top

Status
Not open for further replies.

aureliof

IS-IT--Management
Aug 31, 2006
6
0
0
MX
I have maked a stored procedure to export a table on a csv file, first create the table to insert in it the custom header name for the columns, and then insert the data into the same temporal table, and end with a bcp output to the file, but when i check the csv file the headers are in the middle!?, how i can get the custom headers row on top of the file?, the temporal table, gets created in the start of the procedure, then populated and in the end dropped.

thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top