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 is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.

Answer Posted / ashish kumar gupta

Execute Reader: Use for accessing data. It provides a
forward-only, read-only (Select), connected record set.

Execute Non Reader: Use for data manipulation, such as
Insert, Update, and Delete.

Execute Scalar: Use for Retrieving 1 row 1 col. Value. I.e.
single value. E.g. for retrieving aggregate function. It is
faster than other ways of retrieving a single value from
database.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know using sql cache invalidation?

960


Define common type system?

915


Describe briefly what is the role of IIS on an ASP.NET application? What does it for the same application?

1012


In which event of the page life cycle, is the viewstate available?

901


How would you enable impersonation in the web.config file?

945


Name some asp objects?

957


Explain how do you validate the controls in an asp .net page?

862


Explain the difference between server control and html control.

870


What is the difference between web config and machine config files?

958


What are cao and sao.

986


How can we update records in gridview?Is there any appropriate code for it?

2089


What is s2s tracking?

929


What are the new login controls in asp.net 2.0?

921


Are xaml file compiled or built on runtime?

911


Explain what is clr?

976