Hello All,
Im in desperate need. Please help.
Im loading a csv file using SSIS. I have a column with | embedded in it. And this column varies in lenth and so does the occurence of | delimiter. Its only in some of my rows does a particular string appears and I need to append this string to the next column.This
delimitter is only in one column and I need them to be present in the destination table as well.Its only the occasional last part of the string that needs to be appended to the next column.
I'm trying to use the Derived Column transformation with REPLACE function but in vain. Can someone suggest where I'm going wrong.
Here is my sample data.
transit|Name|edcytd|Response Message,defenition
Needs to be tranformed as
transit|Name|edcytd,Response Message-defenition
This is the function I'm supplying to the REPLACE function.
REPLACE(|Response Message , '|Response Message', ',RM')
I know this is a two step process. I can use concatenate function Expr1+"-"+Expr2 to merge the two strings. How do I seperate the needed string from the original?