What is the difference between a Dataset and DataReader?
Can dataReader hold data from multiple tables?
Answer Posted / naresh
Data reader:
1. It is a read only and forward only data access to data.
2. You can access one table at time.
3. It can't persist the data.
4. It is comes under connected architecture.
5. One of the most advantage is it is much faster than Data
Adapter
Data set:
1. It can access multiple tables at a time.
2. It can persist the data.
3. It is a relational data cache hosted in application
domain during execution.
4. It is a disconnected architecture.
5. It can't define with out data adapter.
Yes.dataReader hold data from multiple tables. The SELECT
statement may have columns that belong to one or more
"tables in the database". By example using a JOIN
or something similar.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Which control of the BindingNavigator returns the current position within the data source?
Explain the DataAdapter.Update() and DataSetAcceptChanges() methods.
What is data view and variable view?
Explain why canot we use multiple inheritance and garbage collector paralelly in .net?
What are the 3 major types of connection objects in ado.net?
Explain the difference between an ado.net dataset and an ado recordset?
What is the difference between connected and disconnected environment?
How do you merge 2 datasets into the third dataset in a simple manner?
What is aggregate root?
Which method is used to sort the data in ADO.Net?
What is the significance of CommandBehavior.CloseConnection ?
Define table relations?
How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?
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?)
What is datatable in ado.net?