Diff. b/w DataReader and DataSet?

Answer Posted / vivek

First of all both are used for storing data in the front
end.
DataReader:-
1)It is connection oriented.4
2)It is faster because every data must travels through this
object.Even dataset also accesses data through this object.
3)Its navigation is forward only and and read only object
4)It can not be connected to multiple backends at a time
because of connected oriented.
5)Data reader is having record pointer to point the record
6)At a time it can point to only record.
7)we can not know how many records are there in datareader
8) By default It does not point to any record
9)Always it takes recference from the Resultset in the
database.for every it goes to resultset and fetches record
from resultset.
10)By default it supports online update.
DataSet:-
1)It is disconnected because it doesnot know about the
datasource
2)It is slow of its fat structure
3)It is useful for the offline retriving data.
4)It indepedent of Backend
5)Once the data is accessed it is independent of backend we
can make any modifications to that data.
6)Navigation is possible in any direction
7)It doesnot have the record pointer to point record
8)Logically we have to create record pointer.
9)It can have any type of data from different databases.
10)It uses "diffgram" to store the data in the form of xml
format
11)By default it supports Batch Sql update

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you know about ado.net's methods?

828


What is executenonquery ado.net?

751


oledbdataadpter with ms access in c#.net giving exception System.Data.OleDb.OleDbException while writing adapter.update(dataset,"tabname"); how to update the database from dataset?

2160


What are the steps you will take to improve performance?

688


How would you connect to a database by using .NET?

735


What are the features of ado.net?

724


Define data access layer?

741


What are disadvantages of microsoft-provided data provider classes in ado.net?

776


Is datareader faster than datatable?

755


How to copy the contents from one table to another table and how to delete the source table in ado.net?

780


Explain how to find the given query is optimised one or not?

741


How to check if the Dataset has records ?

773


Describe briefly an ADO.NET Dataset ?

785


Which database is the ado.net?

761


How do you update database through dataset?

761