请帮忙解答问号的地方应该怎么写,请教! 刚问题已解决~但出现connecting String 属性尚未初始化?不明白 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 ?? = dbconn("delete from UserInformation where Userid='dr'");估计返回 int ,表示删除的行数!int deletedCount = dbconn("delete from UserInformation where Userid='dr'");但是,dbconn 的行为并不清楚,最好把鼠标放在上面看一下返回值的类型! SqlConnection conn=new SqlConnection();改为SqlConnection conn=new SqlConnection("你的连接串"); SqlConnection conn=new SqlConnection("server=.uid=sa;pwd=;datebase=master"); ConnectionString 没赋值 http://topic.csdn.net/t/20060528/18/4784487.html 刚问题已解决~但出现connecting String 属性尚未初始化?不明白============================================================SqlConnection conn=new SqlConnection("server=(local);database=;uid=;pwd="); SqlConnection conn=new SqlConnection("server=.;uid=sa;pwd=你的密码;datebase=你的数据库名"); SqlConnection conn=new SqlConnection();--------------------------------------------连接到那里去啊?? SqlConnection conn=new SqlConnection();缺少 链接 参数.类似SqlConnection conn=new SqlConnection("server=(local);uid=sa;pwd=123456;database=test;"); SqlConnection conn=new SqlConnection("server=(local);uid=sa;pwd=123456;database=test;"); SqlConnection conn = new SqlConnection(); conn = new SqlConnection("server=(local);database=LED;uid=sa;pwd="); conn.Open(); SqlDataAdapter adp = new SqlDataAdapter(); DataSet mydt=new DataSet(); //mydt.Tables = dtselect.rows(); conn.Open(); if (dr == DialogResult.OK) { DataTable da= dbconn("delete from UserInformation where UserId='dr'"); } adp.Update(mydt, "UserInformation"); conn.Close(); } catch(Exception err) { MessageBox.Show(err.Message+ToString()); } 请教~conn已经关闭为什么我做的CATCH语句块还会提示说未关闭? dbconn是个什么东西?执行怎样的一个功能? 你在别的地方有声明么? dbconn系统里是没有这个方法的你在最后一行加上dbconn.close()看看吧。。 初学者问题个小白问题 使用Thread.Sleep(5000),程序假死,请问该如何解决呢?? 三维与地图的交互求一思路与方案 datetimepicker将默认值设为空 checkbox如何将多个选入textbox? [winform]如何给dataGridView行前小图标? 大量数据需要提交到数据库,如何提高效率? 如何把数据传送到另外一个程序? .net 不能调试了,设置了断点不停在那个地方是什么原因?高分求助 有个关于打印得问题 类型化数据集如何进行继承! 做多窗体程序,遇到的问题
?? = dbconn("delete from UserInformation where Userid='dr'");估计返回 int ,表示删除的行数!int deletedCount = dbconn("delete from UserInformation where Userid='dr'");但是,dbconn 的行为并不清楚,最好把鼠标放在上面看一下返回值的类型!
改为
SqlConnection conn=new SqlConnection("你的连接串");
http://topic.csdn.net/t/20060528/18/4784487.html
============================================================
SqlConnection conn=new SqlConnection("server=(local);database=;uid=;pwd=");
--------------------------------------------
连接到那里去啊??
缺少 链接 参数.
类似
SqlConnection conn=new SqlConnection("server=(local);uid=sa;pwd=123456;database=test;");
conn = new SqlConnection("server=(local);database=LED;uid=sa;pwd=");
conn.Open();
SqlDataAdapter adp = new SqlDataAdapter();
DataSet mydt=new DataSet();
//mydt.Tables = dtselect.rows();
conn.Open();
if (dr == DialogResult.OK)
{
DataTable da= dbconn("delete from UserInformation where UserId='dr'");
}
adp.Update(mydt, "UserInformation");
conn.Close();
}
catch(Exception err)
{
MessageBox.Show(err.Message+ToString());
}
请教~conn已经关闭为什么我做的CATCH语句块还会提示说未关闭?