如何摆脱此错误Sqlexception未处理 [英] How Do I Get Rid Of This Error Sqlexception Was Unhandled

查看:95
本文介绍了如何摆脱此错误Sqlexception未处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,



表单中的代码显示错误

SQLException未处理

指针错误显示在下面的行



Me.TableAdapterManager.UpdateAll (Me.CustomerDataSet1)



提前致谢

Friends,

The code in my Form shows an error
SQLException was unhandled
The pointer of the error is shown to the line below

Me.TableAdapterManager.UpdateAll(Me.CustomerDataSet1)

Thanks in advance

推荐答案

首先输入尝试...抓住阻止生成错误的代码并查看它返回的异常对象。它(或InnerException)应该为您提供有关数据库服务器发现错误的更多信息。



当您知道这一点时,您可以开始寻找 为什么 它在抱怨,但至少你会有一些信息继续下去 - 不像我们......
Start by putting a try...catch block around the code that generates the error and looking at the exception object it it returns. It (or the InnerException) should give you more information about exactly what the DB server is finding wrong.

When you know that, you can start looking for why it's complaining, but at least you will have some information to go on - unlike us...


这篇关于如何摆脱此错误Sqlexception未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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