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 the difference between data grid and data repeater?
Explain executenonquery?
What are the main differences between classic ado and ado.net?
Explain how to call the sql commands asynchronously in ado.net version 2.0?
What is ado.net components?
What connected data?
What is the use of ADO.NET and XML web services?
Explain all the classes those are used for database connections between sql server and asp.net?
How will you differentiate between ADO (ActiveX Data Object) and RDO (Remote Data Objects)?
How many major types of connection objects in ADO.NET?
Describe datareader object of ado.net with example.
What is Serialization in .NET? what are the types of Serialization?
What is ole db query?
What do you know about ado.net's methods?
What is ole in vb?