dbTalk Databases Forums  

text File Import Errors - ignoring row delimiter

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


Discuss text File Import Errors - ignoring row delimiter in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
The Kat
 
Posts: n/a

Default text File Import Errors - ignoring row delimiter - 08-19-2005 , 04:36 PM






I am trying to use DTS to import a text file with no field delimiter using
fixed length fields. Imporing rows with less than the max possible row
length ignore the row delimiter and data from multiple fields end up in the
same record. I've seen similar issue in the KB but not this exactly. Is it
possible to import the data using DTS without padding each row to the max
length? Seems to be a bug with DTS because the ROW DELIMITER is there and
being ignored. Another quesiton, does SQL 2005 address this issue?

Reply With Quote
  #2  
Old   
John
 
Posts: n/a

Default Re: text File Import Errors - ignoring row delimiter - 08-20-2005 , 04:43 PM






I have not seen this error before, but you may be able to address this issue
by using a multi-phase data pump. This gives you much more control over how
DTS is handling your data at each stage of the transform. You can instruct
DTS to "allow" the row instead of failing it based on a wide variety of
conditions. It sounds like your source file has some "optional" fields in
it which are not padded with whitespace--is this something you can fix at
another level?
John Glass


Follow this link for more information:
http://msdn.microsoft.com/library/de...mtsk1_2yux.asp


"The Kat" <TheKat (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am trying to use DTS to import a text file with no field delimiter using
fixed length fields. Imporing rows with less than the max possible row
length ignore the row delimiter and data from multiple fields end up in
the
same record. I've seen similar issue in the KB but not this exactly. Is
it
possible to import the data using DTS without padding each row to the max
length? Seems to be a bug with DTS because the ROW DELIMITER is there and
being ignored. Another quesiton, does SQL 2005 address this issue?



Reply With Quote
  #3  
Old   
The Kat
 
Posts: n/a

Default text File Import Errors - ignoring row delimiter - 08-22-2005 , 08:15 AM



DTS is not failing rows that are not padded with spaces so I am not sure the
multi-phase recommendation will fix the issue. DTS is just doing it wrong by
concantenating (combining) the shorter row with fields from the next row.

"John" wrote:

Quote:
I have not seen this error before, but you may be able to address this issue
by using a multi-phase data pump. This gives you much more control over how
DTS is handling your data at each stage of the transform. You can instruct
DTS to "allow" the row instead of failing it based on a wide variety of
conditions. It sounds like your source file has some "optional" fields in
it which are not padded with whitespace--is this something you can fix at
another level?
John Glass


Follow this link for more information:
http://msdn.microsoft.com/library/de...mtsk1_2yux.asp


"The Kat" <TheKat (AT) discussions (DOT) microsoft.com> wrote in message
news:C88EC25E-CAAF-41F4-80A2-8D0734FBB78E (AT) microsoft (DOT) com...
I am trying to use DTS to import a text file with no field delimiter using
fixed length fields. Imporing rows with less than the max possible row
length ignore the row delimiter and data from multiple fields end up in
the
same record. I've seen similar issue in the KB but not this exactly. Is
it
possible to import the data using DTS without padding each row to the max
length? Seems to be a bug with DTS because the ROW DELIMITER is there and
being ignored. Another quesiton, does SQL 2005 address this issue?




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.