Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to insert Null values to a float column in the database

$
0
0

Hi All,

 

I have a small problem. I have a csv file that i need to import to the database. In this file i have a column where it has the value "NULL". This is the 4 letter character word of NULL.

The database column which is mapped to this is float because although there is "NULL" string here majority is float values. I need to insert this column to the database.

What i did was in my Flat file source i allowed it to be string so that the null value and the float values will go through.
But when in the destination it gives errors saying type cast errors. I know this is because it cannot convert the value "NULL" to a float.

Any idea on how i can send this value to the database? I tried using a derived column transformation and using expressions to cast and convert but no luck.

 

Can anyone please let me know a expression of converting this or a method which i could send the "NULL" value to the database? I cannot send empty strings "" to the database.

 

Please help me on this.

 

Thanks

Lucki

 

 

 

 

 


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>