472,143 Members | 1,143 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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?


Jan 4 '07 #1
0 2450

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

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.