dbTalk Databases Forums  

DTS data pump field count "error"

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


Discuss DTS data pump field count "error" in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mark.jackson@ncumbria.nhs.uk
 
Posts: n/a

Default DTS data pump field count "error" - 02-17-2005 , 04:27 AM






I've just noticed a problem with a DTS package I've designed, and was
wondering if anyone else had had a similar problem.

Basically, I have a data pump task which takes an Excel .csv file and
transfers the data into a SQL table. Each .csv column is mapped to a
column in the destination table. OK so far.

However, I've noticed that if the .csv file happens to have ONLY ONE
ROW of data, and there are any blank fields at the end of that row,
these fields are NOT separated by commas - in effect, they "don't
exist" and the file (if opened in a text editor) simply stops at the
last populated field.

Obviously, the DTS sees this as a csv file with one row of data, and an
incorrect number of fields (i.e. not enough!)

Does anyone have any suggestions? I'm not really able to alter the csv
file as I won't have control over that, and really need a way of
somehow making the DTS "add commas" or something in such a situation.


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.