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 |
What are the benefits of using ado.net?
What are different layers of ADO.Net?
Can we bind one datareader wid two dropdown list?
can we have multiple datatables in a datareader ?
18 Answers Fulcrum Logic, Infosys, Kale Consultants, Ness Technologies,
what is trigger?
8 Answers Microsoft, Precept Technology,
Explain the difference between ado and ado.net?
How to find the count of records in a dataset?
Which is faster ado.net or linq?
How do I delete a row from a DataTable?
what are types of Dataset ?
What is the difference between data grid and data repeater?
What is full form of ado?