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 |
What are the validation controls available in ASP.NET?
What are the different kinds of assemblies?
Hi! Could any 1 please suggest me a free practice online exam for asp.net exams.. thanks
What is the current version of asp.net?
How to execute a stored procedure.and how to call it form a asp page
Explain some of the major built-in objects in asp.net
How does session state work in asp.net?
Can you dynamically assign a Master Page?
What is sta?
How to consume a webservice in a windows application without adding through the web reference?
what is the dllhell? why we use the dllhell?
can any one find and tell the difference between dot net and php which one is best ? which one we get more salary? which one is stable and which one is best for freshers and also better in future and carrer ? which one we wil get more salary sir ? please send ur valuable suggestions to kiranpulsar2007@gmail.com