dbTalk Databases Forums  

Re: ActiveX script for converting column

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


Discuss Re: ActiveX script for converting column in the microsoft.public.sqlserver.dts forum.



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

Default Re: ActiveX script for converting column - 07-27-2004 , 02:44 PM






Depending on what your system type is you could use

REPLACE(ProductNumber('-','') as ProductNumber

in your SourceSQLStatement


Or in an Active X transform you might use


DTSDestination("Name") = REPLACE(DTSSource("Name"),"-","")





--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Craig HB" <CraigHB (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am importing product data from an external system. The ProductNumber
column in the source table is in this format : 230-103, and I want to
convert it to number by dropping the "-".
Quote:
Does anyone know the ActiveX script that I can use in the transformation
to do this ?

Thanks,
Craig





Reply With Quote
  #2  
Old   
Craig HB
 
Posts: n/a

Default Re: ActiveX script for converting column - 07-28-2004 , 05:42 AM






it worked ! -- thanks Allan

Craig

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.