What?s the role of the DataReader class in ADO.NET connections?
Answer Posted / ajay singh negi
DataReader object is a simply used to read data from the
result sets and because of this feature we call this object
as forward only or read only cursor. It requires a live
connection with the data source. Threw looping you can
efficiently access all or a part of data from the result
set. Note you cannot directly initialize a DataReader
object. Execute reader method of the command object is used
to obtain a valid DataReader object. After using DataReader
you need to close the connection otherwise it is stayed
alive and it is explicitly closed.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What provider ado.net use by default? Explain the role of data provider in ado.net?
Which database is the ado.net sql connection object designed for?
Which one of the following objects is a high-level abstraction of the connection and command objects in ado.net?
Explain the architecture of ado.net?
What is ado circle?
Explain the various objects in dataset.
What is sql connection in ado.net?
What is an ado connection?
What is ado.net architecture?
What are dcl commands?
Define the data provider classes that is supported by ado.net?
What is difference between datatable and dataset?
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?
What is the use of adodc?
What is a serialized object?