If a dataset contains 100 rows, how to fetch rows between 10
and 20 only ?
Answer Posted / muthu kumar
DataSet ds = new DataSet();
ds.Load(cmd.ExecuteReader(),
LoadOption.OverwriteChanges, "sample");
DataRow[] dr = ds.Tables[0].Select("id>1 and id<10");
for (int i = 0; i < dr.Length; i++)
{
Response.Write(dr[i][0].ToString()+"<br>");
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is connection in ado.net?
Explain how do you connect to sql server database without using sqlclient?
If a table contains 20000 records . In a page at each time 100 records to be displayed what are the steps you will take to improve performance? Will you use dataset or datareader?
What is a control toolbox?
Compare Data Reader & Dataset in ado.net?
Define partial class?
What is difference between connected and disconnected architecture in ado.net?
What are the Features of a dataset
Give few examples of datareader that is used in different dataproviders.
What is the difference between dataset and datatable?
Explain advantages of ado.net?
What is difference between ado and other data object?
What providers does Ado.net uses?
What is ole access?
What is ado recordset?