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

Give 2 examples for scenarios when routing is not applied?

1046


What is asp net objects?

1051


How does output caching work in ASP.NET?

938


Is it possible to apply themes to an asp.net application? If yes, then how?

1013


What is gridview in asp.net?

986


Explain the difference between dataset and datareader.

1007


calling result set one procedure to anothar procedure in sql2000

1761


What is a gridview in asp.net?

1022


Can you explain the basic use of dataview?

1064


What are html helpers in asp.net?

1081


What is an asp.net validator? And, mention its types.

1020


explain code with multi inhertance

2108


What is mvc in angular?

975


What is Web API?

1162


What are the namespaces used in asp.net mvc? : asp.net mvc

1077