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 appSettings Section in the web.config file?

667


Differentiate between namespace and assembly.

644


Explain how cookies work.

694


What is the difference between application state and caching?

638


Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc

635






Explain the difference between debug.write and trace.write?

607


Where session id is stored?

630


Securitywise What are the Enhancements in 2.0?

1576


Explain diff. Betn dataset and recordset?

645


When does a session actually start?

657


What are the components of ado.net?

625


What is cache in asp net?

624


Is asp.net and .net same?

638


Explain about Application and Session Events ?

722


Where is the view state data stored?

663