469,317 Members | 1,950 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,317 developers. It's quick & easy.

BCP import text file with blank line at end of file

I am trying to bcp a text file that is written out of a Java
application. The text file has important order information that I need
to bcp into a SQL Server 2000 database. The problem is that when
records are written out by the Java application the last item in each
record has a new line character attached to it so that a new line is
started for the next record. BCP gives me an error and doesn't import
anything if there is this blank line at the end of my text file. If I
delete the last blank line then my text file imports without any
issues. Anyone have any ideas how I can fix this issue?

Thanks,
Eric

Jan 4 '07 #1
0 2288

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by osmethod | last post: by
4 posts views Thread by Stuk | last post: by
3 posts views Thread by FUGATO | last post: by
3 posts views Thread by bbepristis | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.