You are here: BCP import text file with blank line at end of file « MsSQL Server « IT news, forums, messages
BCP import text file with blank line at end of file

Posted by erucevice on 01/04/07 14:30

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация