once data is fetched into dataset connection gets closed. but in datareader
connection is always maintained...then why datareader is fast and mainly
recommended ?

Answer Posted / abhishek

datareader is forwardonly thus is fast and is mostly used
while retrieving the data from the database.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define data adapter?

679


What are the major challenges in accessing data from a database?

730


What is the maximum pool size in ado.net connection string?

686


Explain the dataadapter class in ado.net?

852


What is a non query?

688


What is the difference between dataset and datatable?

698


What is serialization and de-serialization in .net?

686


Why do we serialize data?

686


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

791


Explain what is datagrid with an example?

797


I loaded the dataset with a table of 10 records. One of the records is deleted from the backend, how do you check whether all the 10 records were present while updating the data(which event and steps) and throw the exception 28 can datareader hold data from multiple tables?

752


What is ado or jdbc?

687


What is difference between connected and disconnected architecture in ado.net?

832


What is the difference between Response.Expires and Reponse.ExpiresAbsolute?

768


Which is better entity framework or ado.net?

692