Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between datareader and dataset?

Answer Posted / yasir a. mughal

&#61656; DataReader (Connection Oriented) is a forward only and
read only data while DataSet (Disconnected) is used to
maintain relationships between multiple tables.
&#61656; You can access one table at a time while it is define with
multiple tables.
&#61656; DataReader can't persists the data while DataSet can
persist the data
&#61656; DataReader operation is faster than DataSet operation.
&#61656; DataReader is connection oriented you can find the changes
in the database reflected in data reader immediately, where
as DataSet is pure disconnected one you will find the
changes only when you refresh the dataset using DataAdapter.

but conclusion....

Another often cited issue knows when to use DataReader as
opposed to DataSet objects. As a rule, if you don't need the
data once it has been read then uses a DataReader. The
DataReader offers a forward-only trip through data, whereas
DataSet allows you access to a group of data that may be
necessary to populate an ASP.NET Repeater or similar control.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does adodb stand for?

1127


What is the difference between ADO and ADO.Net?

1119


What is typed dataset ?

1227


Explain executenonquery?

1215


Does ado.net use odbc?

995


What is sqldatareader?

974


Which is better entity framework or ado.net?

1115


Explain the architecture of ado.net?

1129


Give an example that shows how to execute a stored procedure in ado.net?

1107


What are the parameters that control most of connection pooling behaviours?

1119


How many major types of connection objects in ADO.NET?

1082


What is ole in vb?

946


What is sql connection in ado.net?

1009


Which property is used to check whether a DataReader is closed or opened?

1085


What are two types of transaction supported by ado.net?

1033