帅哥回答:web service端为什么无返回值?
string sql="SELECT Tb_students.Stunum FROM Tb_students WHERE Stunum = "+"'"+num+"'"+" AND "+"Stupassword='"+password+"'";
sqlConnection1.Open();
System.Data.SqlClient.SqlCommand command=new SqlCommand(sql,sqlConnection1);
int count=command.ExecuteNonQuery();//执行到这里的时候就挂了,ExecuteNonQuery()执行不下去了,count 没有返回值!
请高手指点,很急啊!