Diff. b/w DataReader and DataSet?

Answers were Sorted based on User's Feedback



Diff. b/w DataReader and DataSet?..

Answer / g.ramesh

DataReader is connected Architecture.

DataSet is Disconnected Architecture.

Is This Answer Correct ?    19 Yes 1 No

Diff. b/w DataReader and DataSet?..

Answer / mukul anand

Datareader object is used to directly connect with the data
source and Dataset object is used to create a cache of the
original data source and then retrieve or update the date in
the dataset. It is a disconnected enviornment.

Is This Answer Correct ?    12 Yes 1 No

Diff. b/w DataReader and DataSet?..

Answer / 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

Diff. b/w DataReader and DataSet?..

Answer / tejas mer

DataReader is connected architecture and it's read-only, forward only type, so when you just want to display the data better to use it, it consumes less memory with compare to dataset as well.

DataSet is we can say in-memory representation of the data.
It's disconnected architecture.
Contains DataTables, which are further divided into Datarows and Datacolumns.
Also contains DataRelationships and Contraints...

Is This Answer Correct ?    4 Yes 0 No

Diff. b/w DataReader and DataSet?..

Answer / sandeep singh shekhawat

Data Reader is forword only it read one by one row. when it reach end the table then need to another connection open for it. it object create by command object method execute reader.

Data set is used for disconnect approch.It can have more than one table.

Is This Answer Correct ?    3 Yes 0 No

Diff. b/w DataReader and DataSet?..

Answer / anup kumar

DataReader works in connected mode means no data Manipulation
Possible. where DataSet Works in Connected and Disconnected
mode both.there is in-build memory in DataSet. it is
collections of Tables and Every table is collection of rows
and columns.

Is This Answer Correct ?    2 Yes 0 No

Diff. b/w DataReader and DataSet?..

Answer / santosh

data reader is the connection oriented architecture, it is
forward approach, and its give more perfomanc, datareader is
only read the data.
dataset is the disconnection oriented architecture, it is
forward and backward approach and it is slow compare to
datareader, dataset is read and write.

Is This Answer Correct ?    0 Yes 1 No

Diff. b/w DataReader and DataSet?..

Answer / reetesh kumar

The DataReader is a important class of DataProvider
namespace and The DataSet is a also important class of Data
namespace.

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More ADO.NET Interview Questions

Which is faster datareader or dataadapter?

0 Answers  


What is main five diffrent between Connected And Disconnected environment

15 Answers   HCL, Satyam, US India, Wipro,


Which method do you invoke on the DataAdapter control to load your generated dataset with data?

4 Answers  


Give few examples of datareader that is used in different dataproviders.

0 Answers  


What is ado recordset?

0 Answers  






What are the different layers of ado.net?

0 Answers  


How to retrieve the third table value from the data set?

2 Answers   Network Solutions,


What are the advantage of ado.net?

0 Answers  


What are the ado.net connection pooling parameters?

0 Answers  


What is DataReader Object?

0 Answers  


What are the attirbutes of DataSet?

5 Answers   IBM,


What is disconnected data?

0 Answers  


Categories