Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing one field with the numeric equivalent of a fie
Message
From
26/03/2008 15:30:30
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01305881
Message ID:
01305913
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform