dbTalk Databases Forums  

Last row problem, SQL 2K

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Last row problem, SQL 2K in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jmwest99@hotmail.com
 
Posts: n/a

Default Last row problem, SQL 2K - 09-02-2006 , 09:57 PM






Our software imports data from several flat files provided by a third
party. Back in 2000, when we were working with them to determine the
proper format, we had them omit the carriage return/line feed at the
end of the last line in the file because this was causing an import
problem. That was a bug which Microsoft has since fixed, but the files
have remained that way ever since. Recently, we added a new file to
the ones we've been importing for years. This one drops the last row
on the import unless the carriage return/line feed is there. The third
party is resisting making any changes to the file format, and we are
reluctant to tamper with the flat file they send us until we know
what's going on.

The new file is identical to an old one that still imports properly,
except that the new one has additional columns at the end. I can take
a file in the old format and simply change the header to the one with
the extra columns, and it too will drop the last row when it's
imported. If I put the original header back in, then the last row is
imported.

If you look at the size of the fields being imported (as defined by the
table into which DTS puts them), the old file has a maximum line length
of 250 characters; the new file's maximum file length is considerably
longer. Given the problem DTS has exporting varchar fields that are
over 255, I'm wondering if something of the sort is going on here.

Any information to explain this would be greatly appreciated. We're
using Sql Server 2K, so I'm also wondering if there will be any
difference in how DTS behaves when we upgrade to 2005.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.