blank to numeric conversion derived column

Posted by praveen on Stack Overflow See other posts from Stack Overflow or by praveen
Published on 2010-06-08T06:51:35Z Indexed on 2010/06/08 7:12 UTC
Read the original article Hit count: 271

Hi All,

I have a source column with blank (not "NULL"), and target as numeric. while converting using the data conversion it is not converting due to balnk source value so I used derived column to replace a blank value with NULL or 0 as

(source column == " ") ? "0" : source column

but its not giving the value as 0 in the blank place.

thanks prav

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server-2008