.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

The difference between dataset and datareader in ASP.Net.

Posted By: Jack Smith     Posted Date: September 15, 2012    Points:5   Category :ASP.Net
-Datareader provides forward-only and read-only access to data
-Dataset object can hold more than one table from the same data sources as well as the relationships between them.
-Dataset is a disconnected architecture
-Dataset cab persist contents while datareader cannot persist contents

Author: Johnny             
Posted Date: September 19, 2012     Points: 20   

DataReader works on a Connection oriented architecture while DataSet works on disconnected architecture
DataReader is read only, forword only. Using a Dataset you can move in both direction.DataSet is bi directional.
Updation are not possible with DataReader while Database can be updated
As DataReader is much faster then a DataSet.
DataReader is persistence, Dataset is non persistence.


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend