Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacing one field with the numeric equivalent of a fie
Message
 
 
To
26/03/2008 15:03:49
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01305881
Message ID:
01305898
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
>I adjusted to:
>
>
>UPDATE Client SET Field1=CAST(Field2 AS INT)
>
>
>But, I have a syntax error. It be close however. :)

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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform