If i am expecting a single result from sqlserverdatabase
then what command should i follow ?sqlcommand.executereader
(commandbehaviour.singleresult)or sqlcommand.executescalar()
Answer Posted / m.mohan krishna
Sqlcommand.executescalar() is preffered.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the methods of XML dataset object?
How do you update a dataset in ado.net?
What is the difference between dataset and datatable?
What is serialization and de-serialization in .net? How can we serialize the dataset object?
What we do with the object of ado.net dataset after using it?
What is ole db query?
What is ado.net code?
What is ado recordset?
Define bubbled event?
What are two important objects of ADO.Net?
Why is stored procedure used in ado.net?
Which object needs to be closed?
What do you mean by ‘batch updates’?
What is the full form of ado.net?
What is sqldatareader in ado.net?