You are here: Re: BCP import with Blank lines in text file « MsSQL Server « IT news, forums, messages
Re: BCP import with Blank lines in text file

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

 

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

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