dbTalk Databases Forums  

How to convert blank to numeric using activex in DTS Package

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


Discuss How to convert blank to numeric using activex in DTS Package in the microsoft.public.sqlserver.dts forum.



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

Default How to convert blank to numeric using activex in DTS Package - 12-21-2005 , 12:41 PM






I have a flat file with 3 million records.One of the field is numeric. What I
am trying to do is transform the flat file data into sql table.The DTS
Package fails. The Reason it fails is that one of the Numeric Field has Blank
value in it.what do I need to do within a DTS Package so it converts the
blank into 0 and imports the flat file data into sql table.
--
sanjig

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

Default RE: How to convert blank to numeric using activex in DTS Package - 12-22-2005 , 06:11 AM






hi munny,

You must go to Transform Data Task properties->Transformations and then
modify the line between source and destination as ActiveX Script and using
VBScript do a few lines in order to solve this feature, creating a
conditional structure with IF.

I suppose that that numeric field is empty from time to time (or four or
five times along the file) not in all cases or not?
Best regards,

"munny" wrote:

Quote:
I have a flat file with 3 million records.One of the field is numeric. What I
am trying to do is transform the flat file data into sql table.The DTS
Package fails. The Reason it fails is that one of the Numeric Field has Blank
value in it.what do I need to do within a DTS Package so it converts the
blank into 0 and imports the flat file data into sql table.
--
sanjig

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.