![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have character data (money) that I need to convert to numeric data type. When I use the convert or cast functions I receive, " Error converting data type varchar to numeric." error. I found that the character data contains credits with a negative sign. Does anyone have a good idea how to convert this to numeric or decimal format? |
#3
| |||
| |||
|
|
I have character data (money) that I need to convert to numeric data type. When I use the convert or cast functions I receive, " Error converting data type varchar to numeric." error. I found that the character data contains credits with a negative sign. Does anyone have a good idea how to convert this to numeric or decimal format? |
#4
| |||
| |||
|
|
Is it possible that there are some other characters causing the conversion error? A test like SELECT CAST('-34.00' as MONEY) works just fine and returns -34.0000 Could you post a sample of the data? Jim "Gary" <Gary (AT) discussions (DOT) microsoft.com> wrote in message news:9809CB74-4934-4107-AD27-3E9B360C9CDC (AT) microsoft (DOT) com... I have character data (money) that I need to convert to numeric data type. When I use the convert or cast functions I receive, " Error converting data type varchar to numeric." error. I found that the character data contains credits with a negative sign. Does anyone have a good idea how to convert this to numeric or decimal format? |
![]() |
| Thread Tools | |
| Display Modes | |
| |