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
Why edit is not possible in repeater?
Define the data provider classes that is supported by ado.net?
What is the difference between ado.net and oledb?
What are the different row versions available in table?
What are the rules to implement connection pooling?
Why do we use sqldataadapter?
How to bind the controls(best practice) comboboxes to the data in the dataset?
What do you know about ado.net's methods?
What is data reader in ado.net?
What is difference between sqldatareader and sqldataadapter?
What is ado.net in mvc?
What is an example of ordinal data?
What is variable view?
Explain the architecture of ado.net?
Which method in OLEDBAdapter is used to populate dataset with records?