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

Answers were Sorted based on User's Feedback



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

Answer / ashish

execute reader

Is This Answer Correct ?    39 Yes 7 No

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

Answer / amit

Scalar Bcoz it return's only 1 result that's why scalar.

Is This Answer Correct ?    29 Yes 3 No

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

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

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

Answer / kalirajan

Reader... Bcoz It read the data directly from the database

Is This Answer Correct ?    12 Yes 4 No

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

Answer / abhishek

Execute scalar is faster so it is execute one row at the
time

Is This Answer Correct ?    9 Yes 1 No

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

Answer / santhosh

execute reader is fast

Is This Answer Correct ?    7 Yes 0 No

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

Answer / akhilesh

Execute Scalar

Is This Answer Correct ?    8 Yes 2 No

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

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

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

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

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

Answer / monalika

Execute Reader is faster it
internally stores result of a query as an array.

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is connection pooling and how to enable and disable connection pooling?

0 Answers  


What is an application domain ?

2 Answers   Microsoft,


How can we do the client side validation and Server side validations? But i told that At client side by with the help of validations control or by javascript? But I dont know about the Server side controls Explain?

5 Answers   iSoft, TCS,


Explain the difference between panel and groupbox classes using .net?

0 Answers  


What is active web page?

0 Answers  


What is data binding in asp net?

0 Answers  


Explain weak typing and strong typing.

0 Answers  


What is gridview in asp.net?

0 Answers  


Take a Large textbox allow to type any data. Task 1:display the count of vowels in a lable on key press event of the textbox Task 2:dispaly count of dates in a lable when dates in following foramats:dd/mm/yy , mm/dd/yy , yy/mm/dd. Task3:compare 2 dates and display both are same or not which dates are in dd/mm/yy and mm/dd/yy farmats.

0 Answers   eMids,


What are session cookies?

0 Answers  


How use Xml data in ASP.net?

0 Answers   MCN Solutions,


To redirect the user to another page which method do we use without performing a round trip to the client?

0 Answers   Siebel,


Categories