SQLServerException: Arithmetic overflow error converting numeric to data type numeric(1)
来源:互联网 发布:十月妈咪淘宝旗舰店 编辑:程序博客网 时间:2024/05/26 02:22
java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: Arithmetic overflow error converting numeric to data type numeric.......
这个报错很直接,一眼就看出来什么问题。由于产品的复杂性,当客户向我们报这个问题时,我们一下子查不出来是那个表(那个sql)引起的,因为很多表是在产品使用过程动态生成的。产品在实现时,表字段基本都给得很大了,出现这个问题很奇怪,怀疑是不是出现什么极端情况(比如,极大值除以极小值)。碰到这种问题,一开始要把涉及到的sql找出来,这样表、数据就可以出现了,然后再研究是那个字段、那个值会导致这个问题。
数据库是mssql server,sqlserver 提供了一个工具 SQL Server Profiler,利用这个工具可以找出对应的sql.
Open SQL Server Profiler(under Performance Toolsof MS SQLServer Studio) -> File -> New Trace, then connect to targetserver.
后续,继续解决这个问题,请点击下面链接了解详情。
SQLServerException: Arithmetic overflow error converting numeric to data type numeric(2)
0 0
- SQLServerException: Arithmetic overflow error converting numeric to data type numeric(1)
- SQLServerException: Arithmetic overflow error converting numeric to data type numeric(2)
- MSSQL: Arithmetic overflow error converting expression to data type int
- Arithmetic overflow error converting expression to data type int.”
- C++学习之Numeric overflow due to incorrect type casting
- Error converting data type nvarchar to datetime
- Convert non-numeric data to numeric by using LabelEncoder
- SAP HANA的procedures报Numeric overflow error
- RampDiffuse纠错——Error:incorrect number of arguments to numeric-type constructor
- Numeric Type -Learning Python
- XSD Numeric Data Types
- [Python]Converting Between Characters and Numeric Codes
- Convert Long to numeric primitive data types example
- SQLServer 中 错误 Error converting data type varchar to datetime 的解决方法
- java.sql.SQLException: ORA-01426: numeric overflow
- Numeric Overflow,SQL问题?Java Code问题?
- Numeric overflow in expression 提示溢出
- error: expected ',' or '...' before numeric
- Thinkphp查询控制字段和查询一条
- WPF使用迅雷Aplayer
- I帧 B帧 p帧 IDR帧的区别
- nyoj55 懒省事的小明
- 回味左偏树(模板)
- SQLServerException: Arithmetic overflow error converting numeric to data type numeric(1)
- 基础命令
- Linux内核-中断-中断向量表和中断请求队列的初始化
- Java设计模式之行为型模式(责任链模式)
- JAVASE基础-day26(网络编程)
- Android开发QQ登陆、分享、空间分享及回调处理 不回调问题的处理
- 来说说 Java 中的实例初始化器
- nohup
- WebRTC 学习之 Conference 实现混音混屏