• UMG Developer (9/25/2010)


    Thanks for the question.

    This should be good to help people understand how ISNUMERIC works...

    <rant>

    Yeah... like total crap. Its borderline useless. Just to further demonstrate that.

    select isnumeric('2e1')

    This gives 1! An 'e' isnt in my book numeric. Now i know SQL thinks its a calculator and thinks '2e1' = 20 (it does the same with a 'd' instead of the 'e'). But seriously, thats stupid.

    Even more stupid is that even though SQL thinks this is 20 you cant convert it to an Int. You can however convert it to a Float... then to an Int... sigh.

    .NET doesnt do this. Old VB6 does... but atleast VB accepts it as a Int so its consistant. SQL is divided and isnt sure abouts its decision if it really is numeric or not.

    </rant off>

    /T