which one is faster execute reader, scalar, execute non
query ?
Answers were Sorted based on User's Feedback
Answer / amit
Scalar Bcoz it return's only 1 result that's why scalar.
| Is This Answer Correct ? | 29 Yes | 3 No |
Answer / d k
Wrong Question , As ExceuteReader(),ExecuteNonQuery() and
ExecuteScaler() interact to database in same manner and we
all Know about the ExceuteReader(),ExecuteNonQuery() and
ExecuteScaler() serves for different purpose , as
ExceuteReader() reads data against select query ,
ExecuteScaler() reads single cell value and
ExecuteNonQuery() used for action query not returns any
result set.
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / kalirajan
Reader... Bcoz It read the data directly from the database
| Is This Answer Correct ? | 12 Yes | 4 No |
Answer / abhishek
Execute scalar is faster so it is execute one row at the
time
| Is This Answer Correct ? | 9 Yes | 1 No |
Answer / ananth
Excute reader is to easy and quickly fetch the data from
database. but in some casse excute non query is more useful
than excute query , excute reader and excute scalar
thanks
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / 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 |
How do you add a javascript function for a link button in a datagrid ?
what is diff between responseexpires and expiresabsolute
Define the term Web Garden?
0 Answers Sans Pareil IT Services,
The question is "After sign out from email, Then we click a back button , we can't go to the previous page ie inbox page, It is displaying a login form only" My doubt is How will code this , If u know please blog me through this or my mail. my mail id is yoursguna@gmail.com
In which scenario we use Session and Cookies? With Example..
How you can manage the state of application at the server side in ASP.NET?
How many modelpopup extender we frequire when we want more than one model popup on same page ?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?
Does google crawl redirects?
What layout mode is the default when a new Web Form is created? a) GridBagLayout b) GridLayout c) FlowLayout d) FormLayout
What is difference between Fragment Caching and Page Caching in ASP.NET?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)