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

What is the use of dispose method?

1024


How can we inherit a static variable?

1047


What is a server farm in iis?

1030


Explain the difference between asp.net mvc and asp.net webforms

1048


What is the difference between mvc and asp.net? : Asp.Net MVC

1004


What is AutoPostback?

1190


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

1027


What is asp.net web application?

1030


What is cookies in asp net?

934


What is asp.net mvc? : asp.net mvc

1096


What is protected configuration?

1094


How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server

6619


Can we have a web application running without web.config file?

983


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

2466


Difference between response.redirect and server.transfer?

1024