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.
thanks.