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 are the major challenges in accessing data from a database?
What is ado code?
What do you mean by ‘batch updates’?
What is sql connection in ado.net?
What is a control toolbox?
What is a serialized object?
What is the difference between sqlcommand and sqldataadapter?
What is Serialization in .NET? what are the types of Serialization?
What is the difference between connected and disconnected environment?
What is the use of Dataview?
What is ado.net full form?
What is a sqldataadapter?
If a table contains 20000 records. In a page at each time 100 records to be displayed.
What are ado.net objects?
Describe ado.net object model in detail.