查询数据的源代码:string conString="data source=127.0.0.1;database=test;user id=sa;password=123";
string strSQL="select * from student";
SqlConnection myConnection=new SqlConnection(conString);
DataSet ds=new DataSet();
myConnection.Open();
SqlDataAdapter adapter=new SqlDataAdapter(strSQL Read More