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

Disable browser cache for entire ASP.NET website?

1263


Why Unload event of MasterPage Calls first in ASP.net ?

1083


What are session objects?

1049


What is virtual directory in asp.net?

1090


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,?

1120


Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?

1079


What is difference between inproc and outproc?

1190


What are strong names?

1086


a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?

2121


What is asp.net globalization?

1029


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

1065


Where the viewstate is stored after the page postback?

1120


What is the difference between debug and release?

1138


Is post back property in asp net?

1070


Explain the difference between value type and reference type?

699