Difference between Dataset and DataReader ?

Answers were Sorted based on User's Feedback



Difference between Dataset and DataReader ?..

Answer / 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

Difference between Dataset and DataReader ?..

Answer / satish

The DataSet consists of a collection of DataTable objects
that you can relate to each other with DataRelation
objects. A DataSet can read and write data and schema as
XML documents..The DataReader object is the ADO.NET
counterpart of the read-only, forward-only default ADO
cursor

Is This Answer Correct ?    17 Yes 3 No

Difference between Dataset and DataReader ?..

Answer / payal

1)Data set is work in diconnected architure.
Datareader is work in connected architure.

2)according to speed datareader is faster than dataset.

3)In case of dataset it contain all
tables,relations,constriants which is not in datareader so
that speed of datareader is fast.

4)Data set can persist records where datareader is not.

5)we can save ,update data in dataset and save using
acceptchanges method where datareader cannot.

6)datareader is forward only.where dataset is not.

Is This Answer Correct ?    18 Yes 8 No

Difference between Dataset and DataReader ?..

Answer / kamlesh sharma

The DataSet consists of DataTable objects
that you can relate to each other with DataRelation
objects (and dataset is disconnected data model)

The datareader is connected model(connection must be open
while operation performs)
and it is state forward read only counter part of ADO.net

Is This Answer Correct ?    8 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

which one is faster execute reader, scalar, execute non query ?

18 Answers   Intiger, Minecode,


How to you can limit Access to Web API to Specific HTTP Verb?

0 Answers  


What is a Managed Data?

4 Answers   HCL,


In cache where dats is stored and how(file or object?)

2 Answers  


What is the difference between abstract class vs interface? Can give me the real time examples?

0 Answers  






What is work flow gen? how can it will work with .Net?

0 Answers   TCS,


How do you construct HtmlResponseMessage?

1 Answers  


What is boxing and unboxing ?

7 Answers   Accenture, Infosys, MedTek,


What is the use of worker process in asp.net?

0 Answers  


Is asp.net a language?

0 Answers  


What are web beacons used for?

0 Answers  


About session modes

3 Answers   Wipro,


Categories