Difference between Dataset and DataReader ?

Answer Posted / umamahadevan

DataSet

Data set can be said as a temporary data base which works
on disconnected architecture which stores schema and data
in application memory area..It fetches all data at a time..
DML is entertained here

DataReader

Datareader is like a forward only recordset. It fetches one
row at a time.DataReader is readonly so we cannot do any
transaction on them. DataReader will be the best choice
where we need to show the data to the user which requires
no transaction ie reports. Due to DataReader is forward
only we cannot fetch the data randomly. .NET Dataproviders
optimizes the datareaders to handle the huge amount of data.

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

when a request is made in Life cycle of ASP.NET page .

622


How many types of session state management options available in asp.net?

657


How do u declare static variable and how it is declared and what is its lifetime?

607


Write some code using interfaces, virtual methods, and an abstract class`

1688


What are the types of caching in asp.net?

657






How would you get asp.net running in apache web servers?

622


What is the use of response redirect in asp.net?

672


Explain one critical mapping?

668


What is difference between abstract class and an interface?

583


Why do we need Sessions?

666


What is http session state?

601


If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?

746


Explain the difference between sql invalidation and sql notification.

639


What are sessions in asp net?

642


Define page output caching?

663