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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bcp - Field Names 1

Status
Not open for further replies.

elmo29

Programmer
Jul 28, 2000
50
GB
I am exporting a query to a csv file using bcp. I would like to be able to also export the field names into the csv - which it is not doing... any ideas how you do this?? i.e. is there any syntax in the command string that lets you specify this which I don't know about?? They seem to give you lots of options but not that one??
 
Hiya,

There is no way that you can export field names using BCP....sorry

Tim
 
If not in BCP, you can do it in DTS by setting the "first row has column names" to true. Robert Bradley
teaser.jpg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top