Server: Msg 8115
Hi,
This error is something to do with your variable declaration or column width.
So for few values you wont get error.
See the below example:-
select cast(round(10000000.125023343432,2) as decimal(6,2))
Server: Msg 8115, Level 16, State 8, Line 1
Arithmetic overflow error converting numeric to data type numeric.
You need at least a decimal(11,2) for that value. The largest value that a
decimal(8,2) can represent is 9999.99 .
select cast(round(10000000.125023343432,2) as decimal(10,2))
Thanks
Hari
SQL Server MVP
|