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
What is DataRowCollection?
Why is stored procedure used in ado.net?
What are the advantage of ado.net?
What is dao and ado?
What is connected architecture in ado.net?
What is execute scalar in ado.net?
What is the use of SqlCommand object?
What are the key events of sqlconnection class?
What are dcl commands?
What are the drawbacks of using ado.net?
What is an ado?
What is ado code?
What Is Difference Between Ado And Ado.net?
What is the current version of entity framework?
What is untyped dataset?