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 is microsoft ado.net?
What is ado in agriculture?
How to creating a SqlCommand Object?
What is adodb dll?
Which is the best method to get two values from the database?
What is ole db query?
What is commandbuilder in ado.net?
Which is faster sqldataadapter and sqldatareader?
Command objects uses, purposes and their methods.
What is datatable in ado.net?
What does ole stand for in excel?
What is the difference between oledb sql server and oledbdotnet provider?
What is datasource in ado.net?
What are the difference between readonly vs. Const?
What are the connected and disconnected modes in ado.net?