I have flat file. I am loading data from flat file to source table using ssis.And one of the column has following values:
<Somecol1 =""1"" col1values= ""223,567,890,653"">
I want following column output:
<Somecol1 ="1" col1values= "223,567,890,653">
I have tried to replace in derived column.
REPLACE( COLA, "\"","\")
but this doesnt work.
I think you have almost got the expression correct except for the additional slash in the replacement string. Here are the expressions that might work for you.
Expression #1: Removes all double quotes within a given string.
Expression #2: Replaces all double occurrences of double quotes with single occurrence of double quotes.
Here is an example that demonstrates expression #1:
Derived Column transformationinside theData Flow taskthat will replace all double quotes within the first column named as Header.Here is an example that demonstrates expression #2:
Derived Column transformationinside theData Flow taskthat will replace all double occurrences of double quotes with single occurrence of double quotes within the first column named as Header.Hope that helps.
Screenshot #1:
Screenshot #2:
Screenshot #3:
Screenshot #4:
Screenshot #5: