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 |
lordzoster
Starting Member
29 Posts |
Posted - 2008-12-19 : 07:10:20
|
Hallo i'm experiencing 8115 arythmetic overflow while altering a column type from decimal(5,0) to decimal(5,3).Records have no strange data.Any idea?Should I perform the conversion through an intermediate datatype?thanks in advance |
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2008-12-19 : 07:23:48
|
5,3 means you have only 2 digits for the left side of the decimal point.Values coming from 5,0 can have up to 5 digits on the left side.Webfred No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-12-19 : 08:04:57
|
You used decimal(8, 3)? E 12°55'05.63"N 56°04'39.26" |
|
|
lordzoster
Starting Member
29 Posts |
Posted - 2008-12-19 : 08:18:55
|
I solved this way:initial type smallintfinal type decimal(6,3)I was trying to impose a decimal(5,3) that could not work since some records had a 3-digit integer (that i didn't noticed, since there should have been only partial percentuals there, not 100%!!!). |
|
|
|
|
|