Difference between DataReader and DataAdapter / DataSet and
DataAdapter?

Answer Posted / prakash tiwari

Data Reader will read only one record at a time.So memory
consumption will be less,it is purely connection oriented
it will use connection exclusively when datareader is
closed.the memory will be released on the server machine
and connection will be used for any other purpose.

Data Adapter acts as a mediator between dataset and
database server.
it will read data from the database server and places with
in dataset
the manipulations on the dataset will be updated with the
database server

Is This Answer Correct ?    52 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is datatable in ado.net?

508


What is sqlconnection and sqlcommand?

507


What is serialization and de-serialization in .net?

485


How to work with disconnected data - the dataset and sqldataadapter?

495


What does sqldatareader return?

496






What is a sqldataadapter?

515


What is difference between datareader and dataadapter?

540


How can we add relation between tables in a dataset?

541


What is openrowset?

486


How do you find the count of records in a dataset?

473


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

524


What are dcl commands?

498


What are the types of databinding?

543


Explain the basic use of "dataview" and explain its methods.

517


What is a column variable?

492