Hello All,
I am working on an SSIS package which is loading the data from SQL Server to Oracle. In the source table I have a varchar column which has blank string value for few records and due to these my SSIS package is failing with an error saying cannot insert null into this column because it's a not null column in the oracle table.
I have tried below and it is working fine.
REPLACE(MyColumn, " ","_")
But is there any other better way to do it? I am afraid because since it's a varchar column and there is a possibility of having space in between the words (like "cat dog") and the above replace function will replace all the spaces to an Underscore ("cat_dog").
I need to replace MyColumn value with Underscore if it has just the blank string and nothing else.
Please help me in achieving this. Appreciate your help!!.
Thank you so much