i'm using an excel source where i get my excel rows using a query, I'd like to replace possible null values with some other data(a zero value or a empty string for example), that's because i'm performing a transformation into a sql server table wich doesn't accept null values for some columns.
Is there any function to convert a null value to another one? I used the sql server's CASE function, but it didn't work. Any suggestions?
thanks a lot.
Have you tried using Data Conversion transform...
you could use an expression like
IsNull(Column) ? ValueifNull : ValueifNotNull
See some examples here:
http://msdn2.microsoft.com/en-us/library/ms141184.aspx
|||Thanks a lot, the code and the article helped a lot.I used an Derived Column Transformation to parse null values to zeros with the expression. The good thing is that i don't loose the mapping to the old columns. that's great.
Additionally this article helps to understand Derived Column Transformation:
http://msdn2.microsoft.com/en-us/library/ms141069.aspx
regards amigo|||
So, you got it!
That's great.
No comments:
Post a Comment