dbTalk Databases Forums  

Import empty string

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


Discuss Import empty string in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Swanick
 
Posts: n/a

Default Import empty string - 10-11-2004 , 02:57 AM






Hi,

I am trying to create a package which imports a fixed width ascii file to a
table. However, it is failing with this error - 'Script encountered an
invalid data value for 'fieldname' destination column'. The problem is where
the source has an empty string. How can I get around this please?

ps the table has allow nulls

Tom



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Import empty string - 10-11-2004 , 12:38 PM






You could read the line in as 1 string and then parse that into your
destination

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.Konesans.com


"Tom Swanick" <tom.swanick (AT) activant (DOT) com> wrote

Quote:
Hi,

I am trying to create a package which imports a fixed width ascii file to
a
table. However, it is failing with this error - 'Script encountered an
invalid data value for 'fieldname' destination column'. The problem is
where
the source has an empty string. How can I get around this please?

ps the table has allow nulls

Tom





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.