Check IsNumeric() with Derived Column Transform in SSIS Package

Who is online?  0 guests and 2 members
Home  »  Blogs  »  DustinRyan  »  Check IsNumeric() with Derived Column Transform in SSIS Package
 
0
/5
Avg: 0/5: (0 votes)

Comments (3)

KeithHyer
KeithHyer said:

Interesting that when you compare, the "{evaluated expression} ? {true part} : {false part}" is returning a NULL.  It's not returning the "0" ( {false part} ) that you specified it should returned if it was a non-numeric value.

But that is still really clever, Dustin - thanks a lot for sharing that one!  Does this work for other data types or is this strictly a numeric comparison "trick"?

9/1/2010
 · 
 
by
DustinRyan
DustinRyan said:

Thanks, Keith. Can't really get around the NULL return when the expression should evaluate to false since the evaluated expression will not evaluate if it cannot convert the value to a numeric.

This little trick does work for other data types. I've also used this with dates.

9/1/2010
 · 
 
by
Seth
Seth said:

Thanks, Dustin.   I adopted your trick in my Conditional Split control and it works.

3/23/2011
 · 
 
by
Blogs RSS Feed

DustinRyan's latest blog posts

Blogs RSS Feed

Latest community blog posts