Arithmetic overflow error converting numeric to data type numeric

后端 未结 5 1355
灰色年华
灰色年华 2020-12-08 18:06

I keep getting this error message everytime I run this query:

Msg 8115, Level 16, State 8, Line 33
Arithmetic overflow error converting numeric to data type          


        
5条回答
  •  爱一瞬间的悲伤
    2020-12-08 18:41

    If you want to reduce the size to decimal(7,2) from decimal(9,2) you will have to account for the existing data with values greater to fit into decimal(7,2). Either you will have to delete those numbers are truncate it down to fit into your new size. If there was no data for the field you are trying to update it will do it automatically without issues

提交回复
热议问题