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 postback and autopostback in asp.net?

532


What is the difference between response.redirect and server.transfer?

538


What is meant by ispostback in asp net?

545


Explain how do you validate the controls in an asp .net page?

523


What is the mvc model?

581






What is the behavior of a Web browser when it receives an invalid element?

630


Can you clarified A Web service can only be written in .NET or not?

542


How many web config files can be created for an application?

456


What is the purpose of master page?

522


What is the use of data set in asp.net?

493


How many types of Cookies are available in ASP.NET?

590


Using code explain Configuration Management

1410


What is mvc in asp.net tutorial? : Asp.Net MVC

545


What is sdlc process?

530


Can a .net web application consume java web service?

514