sql异常未处理 [英] sql exception unhandled

查看:115
本文介绍了sql异常未处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了无法处理sql异常的问题..我正在使用Visual Studio 2005和sql 2005.it说无效的用户名和ic,我也强调了问题...请更正我的代码.

Hai i got probleam with sql exception unhandled.. i am using visual studio 2005 and sql 2005.it said that invalid username and ic , i also underlined the probleam...please correct my code.

Private Sub Admin_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)  Handles MyBase.Load
        Timer1.Start()
        Me.Staff_TombstoneTableAdapter.Fill(Me.LoginDataSet.staff_Tombstone)
        Me.StaffTableAdapter.Fill(Me.LoginDataSet.staff)

End Sub

推荐答案

如果在其周围放置一个try/catch块,并使用调试器单步执行代码,则可以确切地了解引发该异常的原因.
If you put a try/catch block around it, and step through the code with the debugger, you can see exactly why the exception was thrown.


这篇关于sql异常未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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