File exported thru BCP adding blank line at the end

  • Hi,

    I'm using BCP command to export the data of a table to flat file. The file is getting created fine with all the data, but it is adding an extra blank line at the end of the file. Is there is any way to avoid creation of blank line? Following is the BCP command I'm using

    BCP

    out -c /U /P /S

    Please let me know if there is anyway to avoid blank line in the end of the exported file. Thanks

  • Hi,

    had the same problem.

    I had success with a -r option, which basically sets the row termination to nothing.

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

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