出现Arthematic溢出错误 [英] Arthematic overflow error coming

查看:110
本文介绍了出现Arthematic溢出错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于originalgriff,我连接了其他系统的sql server。

但是当我尝试运行我的应用程序时,它连接到那个系统SQL,下一个错误就是

I connected sql server of other system thanks to originalgriff.
but when I tried to run my application it is connected to that system SQL and next error is coming "

Arithmetic overflow error converting numeric to data type numeric.



如果我从我的系统运行该应用程序,它运行没有任何错误。是否有任何解决方案。



我尝试了什么:



我用谷歌搜索但是没有合适的解决方案


If I ran that application from my system it is running without any error.Is there any solution for this.

What I have tried:

I googled but came with not suitable solution

推荐答案

解决方案很简单。你的数据不同,有些数字太大,这就是你遇到溢出错误的原因。你必须看看确切的数据是什么正在处理并修复它。
The solution is very simple. Your data is different and some number is too big which is why you are getting an overflow error. You'll have to see what exact data is being dealt with and fix it.


引用:

我正在运行相同数据的相同应用程序在我的系统中,一切运行正常。

that same application with same data i am running in my system and everything is running fine.



然后你需要开始研究不同的东西。

假设您无法在其失败的系统上使用调试器,您需要手动将日志信息添加到您的应用程序以精确缩小发生错误的位置,然后集中日志记录以查找您正在谈论的数据,以及它与您系统上的相同运行方式有何不同。



尝试使用File.AppendLine登录文件并比较输出两个系统:寻找它们的不同之处并将其与代码进行比较。



我们不能为你做任何事情:我们不能访问任何一个计算机,或任何想法代码或数据的样子!


Then you need to start looking at what is different.
Assuming you can't use the debugger on the system where it id failing, you will need to manually add logging info to your application to narrow down exactly where the error is occurring, and then concentrate logging there to find out what data you are talking about, and how it different from the same run on your system.

Try logging to a file with File.AppendLine and compare the outputs of the two systems: look for where they differ and compare that with the code.

We can't do any of that for you: we don;t have access to either computer, or any idea what your code or data look like!


这篇关于出现Arthematic溢出错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆