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

Does sqlclient and oledb class share the same functionality?

728


What are the advantage of ado.net?

756


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

747


What is the full form of ado.net?

757


What are the steps to connect to a database?

761


What is oledb driver?

715


What is sqldatareader?

683


Describe connection object in ado.net

770


What is the role of the dataset object in ado.net?

810


What is DataReader Object?

793


Explain advantages of ado.net?

817


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

806


What providers does Ado.net uses?

777


What is openrowset?

719


What are the ado.net objects?

709