I am having OLE DB source (IBM DB2). Couple of columns have junk values (and those columns are defined as unicode DT_WSTR as OleDBReturnCharAsWhar = 1 by default).
But in the destination SQL DB, the datatype is VARCHAR. So when I am converting the values the job is failing. How can I convert these values for a successful load?
I tried CAST/CONVERT at the source (CONVERT (VARCHAR(1),ABCD)), Derived column ((DT_STR,1,1252) ABCD) and data conversion task, but all are failing when they encounter the junk value.
Can someone please help.. Thanks...