Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing one field with the numeric equivalent of a fie
Message
De
26/03/2008 15:30:30
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01305881
Message ID:
01305913
Vues:
15
>It's valid SQL statement but it will only work when Field2 stores character representetaion of integer. See http://berezniker.com/content/pages/sql/microsoft-sql-server/isnumericex-udf-data-type-aware for more info.

Ok, that's right. I have adjusted the SQL to this:
UPDATE Client SET Field2=CAST(Field1 AS NUMERIC(20,0))
As Field2 is numeric(20,0).

Now, I have this message:

"Error converting data type varchat to numeric"
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform