Difference between Dataset and DataReader ?

Answer Posted / umamahadevan

DataSet

Data set can be said as a temporary data base which works
on disconnected architecture which stores schema and data
in application memory area..It fetches all data at a time..
DML is entertained here

DataReader

Datareader is like a forward only recordset. It fetches one
row at a time.DataReader is readonly so we cannot do any
transaction on them. DataReader will be the best choice
where we need to show the data to the user which requires
no transaction ie reports. Due to DataReader is forward
only we cannot fetch the data randomly. .NET Dataproviders
optimizes the datareaders to handle the huge amount of data.

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the adavantage of using ASP.NET routing?

641


What is application in asp net?

492


What is jade template engine?

568


What is the full form of asp.net?

528


What is the asp.net control toolkit?

550






Which method do you use to kill explicitly a users session?

620


Is asp.net web forms dead?

506


Disable Mouse right click on web page in asp.net?

578


Explain different types of validators in asp.net?

526


What is connection pooling and how to enable and disable connection pooling?

475


Differentiate globalization and localization.

580


Where is the view state data stored?

562


What is meant by server side scripting?

518


What is state management in .net?

605


How do you declare static variable? What is its lifetime?

505