Articles → ADO.NET → Difference Between The Dataset And Datareader In Ado.Net

Difference Between The Dataset And Datareader In Ado.Net






Difference


DatasetDatareader
Disconnected architectureConnected architecture
No need to manually open and close the connectionConnection is manually open and close
Data in Dataset can be inspected only when the whole dataset is filledDatareader is a good option when retrieving a large amount of data
Dataset represents a complete set of data including related tables, constraints, and relationships among the tablesThe ADO.NET DataReader is used to retrieve read-only, forward-only data from a database
Dataset is useful when you want to serialize the resultsDatareader stores only one result at a time so it increases application performance and reduces system overheads



Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, May 14, 2024

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250