Difference between datareader and dataset?

Answer Posted / anju

- Data reader is a connection oriented architecture as its
requires continues connection with Data base.
while Data set is disconnected oriented architecture,
whenever user wants to pull the data he/she build the
connection with Data base.


-Data readers execution is very fast. as it reads only
forward stream.
while
Data set execution is slow as compare to Data reader, as it
carries bundle of data.


- when data changes requires frequently then User should go
for Data set, when user doesn't require data changes
frequently then he/ should go for Data Reader.

Is This Answer Correct ?    14 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are advantages of microsoft-provided data provider classes in ado.net?

753


What is the hierarchy of data in databases?

688


What are the differences between OLEDB and SQLClient Providers?

752


What is oledb connection?

702


Can we load multiple tables in a dataset?

768


What is bubbled event can you please explain?

730


Define table relations?

724


What are the major difference between classic ADO and ADO.NET?

719


What is serialization and de-serialization in .net?

686


What is microsoft ole db provider for sql server?

640


Explain the difference in an abstract class and an interface?

688


Does dapper use ado.net?

762


Why do we serialize data?

685


Which namespaces are used for data access?

832


What is ado.net explain with diagram?

697