Difference between datareader and dataset?

Answer Posted / chaitanya k

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

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.

Is This Answer Correct ?    121 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the functionality of data provider in ado.net?

491


What is difference between connected and disconnected architecture in ado.net?

589


What is disconnected scenario in entity framework?

538


What is connection string?

529


Explain the overview of ado.net architecture?

523






Can datareader hold data from multiple tables?

677


What is the current version of entity framework?

487


Define the data provider classes that is supported by ado.net?

523


How is it possible to get 2 tables of data at a time by using data reader?

501


Which object needs to be closed?

1751


What is the difference between data reader and data adapter?

541


What is the use of ADO.NET and XML web services?

596


What are the steps to connect to a database?

548


What are the several execute methods of ado.net?

504


Define data adapter?

513