ssis - importing a flat file that contains both nulls and blanks -
i using ssis import flat files our database. have control on formatting of files. source contains both nulls , blanks - , need preserved.
i have file pipe delimited double-quotes qualify text. this:
|"value a"|""||"value d"| has "value a" in first column, blank in second, null in third, "valud d" in fourth.
when check box retain null values source null values in data flow, blanks turn null. if uncheck it, nulls turn blanks.
how can fix in either ssis or modifying spec of flat file?
sucks, suggest use " " empty string, setting retain null values. then, in derived column or script component transformation, if value(s) not null perform trim on them, or explicitly check value of single space , set empty string.
Comments
Post a Comment