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...

which one is faster execute reader, scalar, execute non
query ?

Answer Posted / vikas kant

1.Execute scalar is most fastest bcoz it returns only
single value.

2.Afterwards Execute reader bcos it reads data in forward
only or read only mode as well as has the live connection
with the database.

3.At last Execute Non Query bcoz it makes the changes in
database.

Execute Scalar ---> Execute Reader ----> Execute Non Query.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need Sessions?

1100


What are the versions of garbage collection?

1953


What is simple data binding?

1007


What is _viewstart?

963


How many types of cookies are available in asp?

1109


Explain serialization and deserialization?

1071


How to implement role based security in asp.net mvc? : Asp.Net MVC

1179


How to prevent client side validation from the ASP.NET validation controls?

1151


What are the asp.net 2.0 features?

1048


How many languages are supported by .NET at present time?

820


What are the advantages of Web API?

1166


Define xmlreader class.

1075


What are the benefits of view state?

996


What is the difference between pathparam and queryparam?

1120


What are the steps to follow to host a web application on a web server?

1117