SqlConnection Myconn;
string connStr=连接字符串;
Myconn=new SqlConnection(connStr);
commstr= "select a1,a2 from table1 where..."
SqlDataAdapter myCommand=new SqlDataAdapter(commstr,myconn);
myconn.Open();
DataTable dbtbl=new DataTable ();
myCommand.Fill (dbtbl);
DataView dbview= dbtbl.DefaultView ;
string my_a=dview.table.Row[i]["a1"];获得返回内容的第i行的a1字段值
string my_a=dview.table.Row[i]["a2"];获得返回内容的第i行的a2字段值