-1

There are ? in my data columns and I have to replace them with NULL. In my SSIS package.

zara rana
  • 59
  • 6

1 Answers1

0

if a question mark is in the column already it must be some kind of string.

Use a derived column and a if function:

[colName] == "?" ? NULL(DT_STR, «length», 1252) : [colName]

or

[colName] == "?" ? NULL(DT_WSTR, «length») : [colName]
KeithL
  • 5,348
  • 3
  • 19
  • 25