SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I've created a package with SSIS, contains flatfile as source and load the data to sql server table, however it could not keep the null values, please advice.
Hi @sql test,
Please first check if you have chosen allow nulls in your destination table.
Secondly, you may set as below when configure the flat file source.
If these do not work, you may add a derived column transformation with the following expression to convert the blank/empty value to null.
(DT_STR,50,1252)( TRIM(Col) == "" ? (DT_STR,50,1252)NULL (DT_STR,50,1252) : Col )
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.