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 |
|
suman.reddy39
Starting Member
34 Posts |
Posted - 2009-02-12 : 06:27:36
|
| dear all, i got an issue in a select statement where select convert(decimal(12,4),COLUMN04) from TABLE104select convert(decimal(12,4),COLUMN02) from TABLE057first select statement is runing fine but the second is giveing an error --Error converting data type nvarchar to numeric.please help me in this regards...y its happeningThanks in Advance.Don't go the way Life takes you, Take the Life the way you gosubbi |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2009-02-12 : 06:32:18
|
[code]select case isnumeric(COLUMN04) when 0 then convert(decimal(12,4), null) else convert(decimal(12,4),COLUMN04) endfrom TABLE104[/code] E 12°55'05.63"N 56°04'39.26" |
 |
|
|
suman.reddy39
Starting Member
34 Posts |
Posted - 2009-02-12 : 06:34:34
|
| thanks dude..Don't go the way Life takes you, Take the Life the way you gosubbi |
 |
|
|
|
|
|