Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transferring character field into numeric field
Message
From
22/10/2012 09:02:30
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01555436
Message ID:
01555448
Views:
42
>ISNUMERIC function can give you false positives.

For real? Can you describe in which occasions this may happen? In my test, I have a record containing mi5 in the record. I would still like to have the record to be imported in the new table but to have a 0 value in the new table numeric field. I would then believe that just using ISNUMERIC() wouldn't enough for that request. At first, I thought that I could use a syntax in the field level list so to have all the records but to convert into numeric, without receiving the error. Is that possible?

>If you want to filter all non-numbers, use
>
>WHERE Column NOT LIKE '%[^0-9]%' -- double negative
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform