Difference between datareader and dataset?

Answer Posted / sagar

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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all features of ADO.Net?

560


What is Data Provider?

580


How to connect and retrieve data from database using dataset

545


Explain ODP.net

576


Which namespaces are used for data access?

628






What are the essential features of ado.net?

546


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?

530


Explain why edit is not possible in repeater?

551


Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!

1648


How to creating a SqlCommand Object?

601


What are the parameters that control most of connection pooling behaviors?

519


What are the methods of XML dataset object?

621


What is executenonquery ado.net?

506


What are the types of databinding?

565


What is acid in ado.net?

535