Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is fill method in ado.net?

1038


How do we use stored procedure in ADO.NET and how do we provide parameters to the stored procedures?

1018


How to enable and disable connection pooling?

1112


What are dcl commands?

1051


Why ca not we use multiple inheritance and garbage collector paralelly in .net?

1056


Explain how do you connect to sql server database without using sqlclient?

1063


What are all the different authentication techniques used to connect to MS SQL Server?

1138


What is adodb dll?

1053


How to create data relations?

1054


What are the classes in System.Data.Common Namespace?

1210


can we create synonymn in ms access,sql server,my sql if so explain me with example

2145


Explain the difference in an abstract class and an interface?

975


Command objects uses, purposes and their methods.

1031


Which database is the ado.net?

1025


What are the 3 major types of connection objects in ado.net?

1054