[求助]连接出错了!!
异常详细信息: System.Data.SqlClient.SqlException: 列名 'user_id' 无效。源错误:
|
可是我的表跟字段都没有错呀!!
这是我的程式:
SqlConnection myConnection = new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings ["connection"]);
String cmdText = "select * from users where user_id='"+this.TextBox1.Text+"'";
麻烦大虾们帮帮忙,急需解决!!!
SqlDataAdapter userAdapter=new SqlDataAdapter(cmdText,myConnection);
DataSet userSet=new DataSet();
userAdapter.Fill(userSet,"users");