once data is fetched into dataset connection gets closed. but in datareader
connection is always maintained...then why datareader is fast and mainly
recommended ?
Answers were Sorted based on User's Feedback
Answer / hhh
DataSet carry considerable overhead because of relations,
multiple tables,
While DataReader only readony and fawardonly stream of
data, it fatch only one row at a time. thats y its faster
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / 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 |
How to find the given query is optimised one or not?
What are the steps in connecting to database?
What are the Features and disadvantages of dataset
Is it possible to edit data in Repeater control?
What is bubbled event?
How to add a check box or a dropdown list to a column in a datagrid?
what is a dataset?
Describe ado.net object model in detail.
How to read data with the sqldatareader ?
What is the difference between dataset and datatable?
How do you implement locking concept for dataset?
Define partial class?