通过 vb 代码运行时,将 IDENTITY 转换为数据类型 int 时发生算术溢出错误.但是当我执行存储过程时,数据被正确插入.
Arithmetic overflow error converting IDENTITY to data type int, is occurring when running through vb code. But when I execute the stored procedure, data gets inserted properly.
通过应用程序有时也可以,有时不可以.
Through application also sometimes this works and sometimes it doesn't.
当我检查当前标识值和当前列值不同时.这是否属于问题.
When I check the current identity value and current column values are different. IS this falls under issue.
请告诉我如何解决它.
2147483647 是 INT 的最大尺寸,所以你的 IDENTITY 是比这个大.您可以使用 BIGINT 来解决您的错误,假设您的 IDENTITY 不会超过 9223372036854775807.
2147483647 Is the maximum size for INT so somewhere your IDENTITY is larger than this. You can use BIGINT instead to get around your error, assuming your IDENTITY won't surpass 9223372036854775807.
这篇关于将 IDENTITY 转换为数据类型 int 的算术溢出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
将每个子标记转换为具有多个分隔符的单列-SQLConverting Every Child Tags in to a Single Column with multiple Delimiters -SQL Server (3)(将每个子标记转换为具有多个分隔符的单列-SQ
如何从多个表创建视图?How can I create a view from more than one table?(如何从多个表创建视图?)
根据前一行内的计算值创建计算值Create calculated value based on calculated value inside previous row(根据前一行内的计算值创建计算值)
如何将表格的前两列堆叠成一列,但也仅将第三How do I stack the first two columns of a table into a single column, but also pair third column with the first column only?(如何将表格的前两列堆
递归 t-sql 查询Recursive t-sql query(递归 t-sql 查询)
将月份名称转换为日期/月份编号(问题和答案的组Convert Month Name to Date / Month Number (Combinations of Questions amp; Answers)(将月份名称转换为日期/月份编号(问题和答案的组合