Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transferring character field into numeric field
Message
From
22/10/2012 10:01:51
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01555436
Message ID:
01555453
Views:
46
>1e5 or 1d4 should be treated as numeric by isnumeric function. In fact, Sergey has a blog on this very topic
>http://berezniker.com/content/pages/sql/microsoft-sql-server/isnumericex-udf-data-type-aware

This is a sophisticated technique. Thanks for the reference

However, this one also uses the WHERE approach. Thus, all records not eligible will not be taken into consideration. I am looking at including all records but to convert the non numeric values from the character field into 0, when this is not something that SQL Server could convert. I do not know if that is possible.
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