|
protected void Page_Load (object sender, EventArgs e)
{
string sql = "select * from cheeck where shuihao = session ['shuihao']";
SqlConnection con = new SqlConnection ();
con.ConnectionString = "Server = i-server; database = fapiao; integrated security = SSPI;";
con.Open ();
SqlDataAdapter sqlda = new SqlDataAdapter (sql, con);
DataSet ds = new DataSet ();
DataTable mytable = ds.Tables ["cheeck"]
The above is a piece of my program. I would like to ask when filling the dataset object with FILL.
Is the "cheeck" in sqlda.Fill (ds, "cheeck"); the result of the query using the select statement above? My cheeck is a table, and the error is displayed when running. I do n’t know how to fill the query content into ds Inside, ask ~ |
|