If i am expecting a single result from sqlserverdatabase
then what command should i follow ?sqlcommand.executereader
(commandbehaviour.singleresult)or sqlcommand.executescalar()

Answer Posted / pankul

sqlcommand.executescalar()

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is DataRowCollection?

625


Why is stored procedure used in ado.net?

549


What are the advantage of ado.net?

521


What is dao and ado?

480


What is connected architecture in ado.net?

524






What is execute scalar in ado.net?

500


What is the use of SqlCommand object?

646


What are the key events of sqlconnection class?

614


What are dcl commands?

508


What are the drawbacks of using ado.net?

543


What is an ado?

522


What is ado code?

500


What Is Difference Between Ado And Ado.net?

560


What is the current version of entity framework?

482


What is untyped dataset?

541