I'm exporting a data from table to file through SQL BCP using following command.
bcp test..Sample_Table in C:\Test\Test.dat -c -f C:\Test\TestFormat.fmt -S -T -C
After epxort, it is adding a new line at the end of the file.
Same output file i'm importing into another table in another database. So because of this new line, i'm getting Unexpected EOF file error in bcp.
Is there any way to remove this new line in export or import through bcp? Or Is adding newline related to the format file?