Difference between datareader and dataset?

Answer Posted / jayeshwaree

datareader:
*connected enviornment
*reads one row at a time. By using Read() we can read the
read records of one row
*used to retrieve data as it returns a result set in a read
only and forward only mode

dataset:
*disconnected enviornment
*it is used as a container to hold one or more tables with
constraints and relations
*to update the changes made in dataset we need a data
adapter and we need to call the Update() method

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a control toolbox?

738


Why is stored procedure used in ado.net?

803


What is ole used for?

719


What does ado stand for?

733


What is concurrency? How will you avoid concurrency when dealing with dataset? (One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid the problem?)

799


What is the use of SqlCommand object?

936


Does ado.net use odbc?

735


What is the meaning of object pooling?

886


How to retrieve the user id which is provided while windows authentication?

850


How to aggregating data across related tables?

802


Define executenonquery?

730


What is read only and forward only in ado.net?

748


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

749


What is serialization and de-serialization in .net? How can we serialize the dataset object?

752


What are the drawbacks of using ado.net?

755