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 |
|
mdhingra01
Posting Yak Master
179 Posts |
Posted - 2004-08-19 : 15:17:58
|
| I was trying to convert a char field to numeric, but I get te following error:Error converting data varchar to numeric.My syntax is as follows:Select convert(numeric (4),f_year) from osrinit |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-08-19 : 15:28:03
|
| You might have data that can't be converted to numeric. Use the IsNumeric function to find these.Also, you might try numeric(4,1). But if f_year is just years, then just use smallint.Tara |
 |
|
|
|
|
|