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 / divya sharma

Execute Non Query- its for manipulation
(insert,delete,update),returns number of rows affected.

Execute Reader- accesses data in read only,forward only way
(perform commands such as select).

Execute scalar- returns only one value i.e. 1st row,1st
column, after execution of query.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?

1232


Is it possible to migrate visual interdev design-time controls to asp.net?

1053


What is a web api? Which protocol is used in a web api?

1068


Explain the role of global.asax?

997


What is Bundling and Minification in MVC?

1029


What is session management in web application?

1027


What is active web pages?

959


Where can I get information on cookies in asp.net?

1019


What is clickid?

1051


What is advantage of asp.net?

970


What is manifest in .net framework?

1017


What is http request and response?

1022


How to reduce the width of textbox in editcommandcolumn of datagrid?

1006


Define repository pattern in asp.net mvc? : asp.net mvc

996


In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?

1068