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
List the 4 common ado.net namespaces?
How will you fill the gridview by using datatable object at runtime?
What are the uses of Stored Procedure?
What are dataproviders?
What is variable view?
What is the difference between data grid and data repeater?
what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?
Explain what are acid properties?
How to maintain the relation between two tables in ADO.NET?
What is difference between datagridview and datagrid control in winforms?
What is ole in vb?
What are the features of ado.net?
What does executereader return?
What is difference between datatable and dataset?
Which provider is used to connect ms access, oracle, etc…?