I have a in a flat file called Primary Name. I am importing into SSIS and have used a Data Conversion to change the data from DT_STR to DT_WSTR as I read on a Microsoft page that the REPLACE string function in Derived columns only work as DT_WSTR.
I then add a derive column to the comma from the column which has: surname, firstname
I have selected "Replace 'Copy of Primary Name' and in the expression have dragged REPLACE into the expression column. I have then inserted the following to create the expression which is still highlighting red:
REPLACE(Primary Name, ',', ' ')
There is a space in the name for the Column whichI will fix before importing it in to SQL could that be the problem perhaps. I have trawled the internet for this and it looks correct. I am at a loss now so any help appreciated.