Reputation: 895
I want import an SQL Table and I want the empty cells as NULLs using SSIS. So I want the csv file to contain Nulls instead of blank cells.
Thanks
Upvotes: 1
Views: 7781
Reputation: 23
Upvotes: 0
Reputation: 2060
To convert source blanks into table NULLs:
Upvotes: 4
Reputation: 4169
In your data set all you need to do is add a derived column and set the value to this.
YourColumn == "" ? NULL(DT_WSTR,50) : YourColumn
You may also be able to check the box on the source that says keep null values to solve the issue.
Upvotes: 3