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

How many validators do ASP.NET have?

1051


Explain how viewstate is being formed?

927


What is session object? Describe in detail.

969


What is the use of execute non query in asp.net?

906


What is redirectpermanent in asp.net?

1023


What is skin in asp.net?

904


A Web Service Can Only Be Written In .net. Is it True??

1014


What would be salary for 8+ years of experience in ASP.NET in different metro city in india?

2406


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

1045


What is asp.net web application?

994


What is hidden field in asp.net?

1036


Explain how does asp page work?

956


How to improve performance of web application asp.net mvc? : Asp.Net MVC

963


How does windows service lifecycle differ from a .standard. Exe?

972


What is special types forms

968