Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

ssis vb script

$
0
0
how to use variable values in replace function using vb script.

one variable I am getting value 
variable name :address and getting values :bangawore
and another variable replvalue and values is l
outputvariabl: finalvalu and value should be come bangalore

I need to replace w to l using replace function 
Finaly output should be bangalore



dim address1 as string
dim replvalue1 as string
dim replace as string

address1= Dts.Variables("User::address").Value.ToString 

replvalue1=Dts.Variables("User::replvalue").Value.ToString 

Dts.Variables("User::finalvalu").Value=replace (address1,"w",replvalues1)

but above one is not replaceing the value

could you please tell me how to achive this task in ssis vb script.

Viewing all articles
Browse latest Browse all 24688

Trending Articles