Differences between "DataSet" and "DataReader".

Answer

Dataset

DataSet object can contain multiple rowsets from the same data source as well as from the relationships between them

Dataset is a disconnected architecture

Dataset can persist data.

A DataSet is well suited for data that needs to be retrieved from multiple tables.

Due to overhead DatsSet is slower than DataReader.

Datareader

DataReader provides forward-only and read-only access to data.

Datareader is connected architecture. It has live connection while reading data

Datareader can not persist data.

Speed performance is better in DataReader.

All ado.net Questions

Ask your interview questions on ado-net

Write Your comment or Questions if you want the answers on ado-net from ado-net Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---