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 are the server controls in asp.net?

660


How can I open ashx file in mobile?

829


Explain what is an assembly?

737


What does mvc represent in asp.net? : asp.net mvc

731


What is a 307 redirect?

664


What does passport and windows authentication mean in ASP.NET?

865


Explain exception handling in .net.

823


Define secured sockets layer.

696


What is routing in MVC?

792


Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?

2141


Which data type does the rangevalidator control support?

710


What is asp net_sessionid?

816


Why do we use web config?

688


What is a form tag?

684


What are the advantages of asp.net?

725