Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
DENIZ3E
Yak Posting Veteran
56 Posts |
Posted - 2005-04-15 : 02:00:55
|
| hý everybody,I WANT TO VARCHAR CONVERT TO FLOAT BUT...SELECT CONVERT(FLOAT,REPLACE('P1*100','P1','1000'))'Server: Msg 8114, Level 16, State 5, Line 1Error converting data type varchar to float. |
|
|
jen
Master Smack Fu Yak Hacker
4110 Posts |
Posted - 2005-04-15 : 02:20:41
|
quote: Originally posted by DENIZ3E hý everybody,I WANT TO VARCHAR CONVERT TO FLOAT BUT...SELECT CONVERT(FLOAT,REPLACE('P1*100','P1','1000'))'Server: Msg 8114, Level 16, State 5, Line 1Error converting data type varchar to float.
you're trying to convert '1000*100' to float, no computation is made yet--------------------keeping it simple... |
 |
|
|
|
|
|