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 basic use of data view?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
Explain the overview of ado.net architecture?
What is ado.net in mvc?
Explain the architecture of ado.net?
What is difference between Dataview and Datatable?
Explain the difference in an abstract class and an interface?
What is a dataview?
What is data access pattern?
What is the difference between connected and disconnected environment?
Which architecture does Datasets follow?
What is difference between executenonquery and executequery?
Explain the advantages and disadvantages of using datalist?
What are the data providers in ADO.NET framework?
What is the role of clr?