If a table contains 20000 records . In a page at each time
100 records to be displayed. What are the steps u will take
to improve performance? will you use dataset or datareader?

Answer Posted / vijay

we have to use a dataset because on using datareader
forward only paging can be achieved. Suppose if you are at
1000 page and you want to go back to 999th page, if you use
datareader it cannot be achieved, since it does not support
backward navigation.
Dataset supports forward and backward navigation

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name which operations can you not perform on an ado.net dataset?

486


What is dao and ado?

480


What are basic methods of dataadapter?

507


Which object of ado contains datarow datacolumn collection?

514


How is entity framework different from ado.net?

488






Which method in OLEDBAdapter is used to populate dataset with records?

561


Does sqlclient and oledb class share the same functionality?

534


What is difference between datatable and dataset?

526


how you will deal result set? How do you sort a dataset?If a dataset contains 100 rows, how to fetch rows between 5 and 15 only?

583


What provider ado.net use by default? Explain the role of data provider in ado.net?

528


What is ado.net code?

523


What is the difference between data grid and data repeater?

504


Why do we need ado.net?

542


Explain how to call the sql commands asynchronously in ado.net version 2.0?

508


What is an orm, and why would you use one instead of plain old ado.net?

574