Question : DTS transformation error with vb script

Experts,

I am having some syntax issues with a vbscript i am running on a dts transformation.
MSSQL 2000

I would like to run the replace function to find all quotes and add a slash to it when it copies over.
Example:
ItemDescription- Something 14"
ItemDescription- Something else 18" blue

Below is the code I am attempting to use.
Any help is appreciated.
Thanks
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
DTSDestination("ItemDescription")  = DTSSource(Replace("ItemDescription",char(34),"\""))
        Main = DTSTransformStat_OK
 
 
# i also tried
DTSDestination("ItemDescription")  = Replace(DTSSource("ItemDescription"), Char(34), "\"")
Main = DTSTransformStat_OK
 # the \ messed the script up then i tried 2 single quotes but nothing happend.
Open in New Window Select All

Answer : DTS transformation error with vb script

DTSDestination("ItemDescription")  = Replace(DTSSource("ItemDescription"), Chr(34), "\")
Main = DTSTransformStat_OK
Random Solutions  
 
programming4us programming4us