G
Guest
Hi
Please give me some inputs on the following :
Iam planning to use a custom control to list a large number of records from
sql database through ado.net. so in the following code, if i give a select
* query, does the dataset holds the complete records in the memory? or is
there anyway i can set options in the dataset? or the paging logic need to be
done in UI side?
Hari
//Open Connection.
SqlConnection conn = new
SqlConnection("Server=server;uid=login;pwd=pwd;database=northwind");
//Set the DataAdapter's query.
da = new SqlDataAdapter("select * from customers", conn);
ds = new DataSet();
//Fill the DataSet.
da.Fill(ds, "customers");
Please give me some inputs on the following :
Iam planning to use a custom control to list a large number of records from
sql database through ado.net. so in the following code, if i give a select
* query, does the dataset holds the complete records in the memory? or is
there anyway i can set options in the dataset? or the paging logic need to be
done in UI side?
Hari
//Open Connection.
SqlConnection conn = new
SqlConnection("Server=server;uid=login;pwd=pwd;database=northwind");
//Set the DataAdapter's query.
da = new SqlDataAdapter("select * from customers", conn);
ds = new DataSet();
//Fill the DataSet.
da.Fill(ds, "customers");