BCP table headers

  • Hey all!

     

    I am bcp'ing a view out with named column headers and was wondering if there is a parameter to pass to bcp that makes the column header names appear at the top of the extract file?

    I can't find one.

    Thanks!

     

  • Bcp does not have this property.

    You can try osql.

    osql -E -Q"SELECT * FROM view" -o "outputfile"

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

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