Sunday, 2 October 2011

Describe main differences between DataSet and DataReader

Following are some major differences between DataSet and DataReader :
DataReader provides forward-only and read-only access to data, while the DataSet object providesrandom access and 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 cannot.

No comments:

Post a Comment