Home > DeveloperSection > Interviews > What is difference between dataset and datareader?

Posted on    January-27-2014 2:35 AM

 C# C# 
Ratings:
 1 Answer(s)
  1225  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    January-27-2014 1:00 AM

DataReader provides forward-only and read-only access to data, while the DataSet object can hold more than one table (in other words more than one rowset) from the same data source as well as the relationships between them.

Dataset is a disconnected architecture while datareader is connected architecture.

Dataset can persist contents while datareader can not persist contents, they are forward only.


Don't want to miss updates? Please click the below button!

Follow MindStick