Difference between datareader and dataset?

Answer Posted / sridhar.m

Data reader
1. It is a read only and forward only data.
2. U can access one table at time.
3. It can't persist the data.
4. It is comes under connected architecture.
5. One of the most advantage is it is much faster than data
adapter
6.datareader connection oriented.

Data set:

1. It is defined with multiple tables.
2. It can persist the data.
3. It is a relational data cache hosted in application
domain during execution.
4. It is a disconnected architecture.
5. It can't defined with out data adapter.
6.whereas dataset disconnected.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to generate a single aggregate?

713


What is ado oledb and odbc?

666


How to enable and disable connection pooling?

702


What is a dynaset in access?

748


Which is faster entity framework or ado.net?

676






Explain all the classes those are used for database connections between sql server and asp.net?

728


What is ado.net connection?

647


Give an example of a .net application which connects to microsoft access database using ado.net classes.

779


What is difference between entity framework and ado.net?

664


What are the pre-requisites for connection pooling?

708


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?

811


What is a datareader object?

785


What are the data providers in ADO.NET framework?

759


Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?

841


How can I retrieve two tables of data at a time by using data reader? Data reader read and forward only, how is it possible to get 2 tables of data at a time?

706