Link to home
Start Free TrialLog in
Avatar of JElster
JElsterFlag for United States of America

asked on

SQL SERVER - Convert varchar to numeric 6.2

How do I convert a varchar to a numeric 6,2

"50.00"
"100.00"

I tried cast but get ...

Msg 8114, Level 16, State 5, Line 2
Error converting data type nvarchar to numeric.
Avatar of didnthaveaname
didnthaveaname

Can you post your query so we can see the details?  Thanks!
Avatar of JElster

ASKER

UPDATE revenue SET PERCENTAGE = CAST([PERCENT] AS NUMERIC(6,2))
ASKER CERTIFIED SOLUTION
Avatar of Ephraim Wangoya
Ephraim Wangoya
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
cc03e747a6afbbcbf8be7668acfebee5 can you convert this to numeric? please .... thanks