Posted by Roy Harvey on 01/09/07 01:41
On 8 Jan 2007 06:45:53 -0800, "EricR" <erucevice@gmail.com> wrote:
>I can stop it from adding the new line character in Java but that is
>easier said than done considering how my code is written. i have no way
>of knowing how many records are going to be written to the text file
>before the file is written. That is why I was hoping that there may be
>some way within bcp to get it to ignore the last line, but the more I
>play around with it the more I see that this is probably not possible.
>Thanks for your suggestions.
Perhaps you can simply write a simple utility program that removes the
problematic line, and run the file through that before BCP. That is
the approach I have used for such problems in the past.
Roy Harvey
Beacon Falls, CT
[Back to original message]
|