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
Which is better ole db or odbc?
Is datareader faster than datatable?
Can we load multiple tables in a dataset?
What is difference between executenonquery and executequery?
What is the difference between linq and ado.net?
What does adodb stand for?
Give few examples of datareader that is used in different dataproviders.
Explain the advantage of ADO.Net?
What is ado.net connection?
What is the difference between ADO and ADO.Net?
Name which operations can you not perform on an ado.net dataset?
Define connection string?
How can we load multiple tables in to dataset?
Explain how can we load multiple tables in to dataset?
Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.