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

Which keyword is used to accept variable number of parameters?

682


What is a sqldataadapter?

522


What is an example of ordinal data?

485


How do I delete a row from a DataTable?

593


Which is faster sqldataadapter and sqldatareader?

498






What is a dynaset in access?

521


What is the advantage of ado.net?

539


What is meant by executenonquery?

527


How would you connect to a database by using .NET?

475


What is ambient transaction?

504


Give few examples of datareader that is used in different dataproviders.

537


What are two important objects of ADO.Net?

554


What is different between sqlcommand object and command behavior object?

539


Which object of ado contains datarow datacolumn collection?

510


Which is better ole db or odbc?

496