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 / rajesh

Execute Reader: it executes the command and returns the result
set of the command

Execute NonQuery: it executes the command and returns the
number of rows affected

Execute Scalar: it executes the command and returns only
first row first column value

Is This Answer Correct ?    46 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

947


What is difference between View State and Hidden Field in ASP.NET?

1139


Explain the difference between sql invalidation and sql notification.

967


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

2158


Difference between web user control and web custom control?

915


What is server infrastructure?

1114


Define xmlvalidatingreader class.

1077


Explain the benefits of viewstate?

1022


Explain cashing in asp.net.

980


How long do session variables last?

954


Describe Segmentation With Paging?

1061


Explain the difference between inline and code behind - which is best in?

1002


Define view state.

934


What is the flow of processing of the request? : asp.net mvc

1023


How does a content page differ from a master page?

1038