asp.net中为什么对sql数据库更新不了数据?谢谢!
我的代码:ConnStr="server=HH-PC;IntegratedSecurity=True;database=hhsz;";sqlConn=newSqlConn...
我的代码:
ConnStr = "server=HH-PC;Integrated Security=True;database=hhsz;";
sqlConn = new SqlConnection(ConnStr);
sqlConn.Open();
SqlStr = "insert into 信息 values(NULL,'27841953','NULL','明明','NULL','NULL')";
myCmd = new SqlCommand(SqlStr, sqlConn);
myCmd.Dispose();
sqlConn.Close(); 展开
ConnStr = "server=HH-PC;Integrated Security=True;database=hhsz;";
sqlConn = new SqlConnection(ConnStr);
sqlConn.Open();
SqlStr = "insert into 信息 values(NULL,'27841953','NULL','明明','NULL','NULL')";
myCmd = new SqlCommand(SqlStr, sqlConn);
myCmd.Dispose();
sqlConn.Close(); 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询