Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
zstone
Starting Member
6 Posts |
Posted - 2007-08-02 : 19:39:27
|
| Hi All,I am using BCP to export some data from the database into a CSV file.I am trying to include the column headers ( filed names ) in the exported file but the file keeps getting generated without the column names / headers.Is this possible in BCP ?Thanks |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-08-02 : 22:35:21
|
| May try run two select statements in bcp. First one looks like 'select 'col1', 'col2', ... from ...' and save result to output file. Second one dumps data and appends results to same output file. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|