Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Char(12) to Numeric
Message
De
27/03/2011 15:50:30
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01505130
Message ID:
01505139
Vues:
35
>1. You may want to explicitly specify the size, see this blog post why http://blogs.lessthandot.com/index.php/DataMgmt/DataDesign/decimal-and-numeric-problems-when-you-do
>
>2. If you only have '-' in your phone as a special character (no ()) then convert(numeric(15,0), replace(Tel,'-','')) has less functions. Also, you need to add test for ISNUMERIC to avoid conversion errors.

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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform