Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
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.
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts
Posted - 2005-04-18 : 14:04:42
'1000*100' is not a string that can be converted diretly to a number:
SELECT CONVERT(FLOAT,'1000*100')Server: Msg 8114, Level 16, State 5, Line 4Error converting data type varchar to float.