Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing one field with the numeric equivalent of a fie
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01305881
Message ID:
01384886
Views:
32
>I am not sure you (or anybody else) notice the changes I made in ISNUMEIRC() function:
>From:
>ISNUMERIC(Fld1+'e1') = 1
>to
>ISNUMERIC(Fld1+'0e1') = 1
>
>That is a trick I learned from George Mastros. Unfortunately he only post in tek-tips forum.
>The goal here is that IF you have values as in the example above ISNUMERIC(Fld1+'0e1') returns:
>
>'1'   -> '1e1'   -> 1
>'1e1' -> '1e1e1' -> 0
>'1d12'-> '1d12e1'-> 0
>''    -> 'e1'    -> 1
>
>and you update only these records where you have a proper numeric values :-)

He now also posts on asp.net/forums so broader audience can benefit from his vast knowledge...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform