Arithmetic overflow error converting expression to data type %1!.

Error Message:
Msg 8115, Level 16, State 2, Line 1
Arithmetic overflow error converting expression to data type %1!.

Severity level:
16.

Description:
This error message appears when you try to convert a value of a certain datatype to another datatype, but that value is too large for the second datatype.

Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.

Resolution:
Error of the Severity level 16 are generated by the user and can be fixed by the SQL Server user. Either the offending data needs to be corrected or a wider datatype has to be choosen.

Versions:
All versions of SQL Server.

Example(s):
SELECT CAST(‘-922,337,203,685,477.5809’ AS MONEY)

Remarks:
In the above example the string is less than the allowed lower bound for the MONEY datatype. This raises the error.

]]>

Leave a comment

Your email address will not be published.