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 is the difference between statement and preparedstatement interface?
What are the benefits of ADO.NET?
The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx
how Sequence to connect and retrieve data from database using dataset?
Which is faster datareader or dataadapter?
What is disconnected scenario in entity framework?
What is the default Timeout for SqlCommand.CommandTimeout property?
What is microsoft ado.net?
Explain sqlconnection object?
Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?
Is it possible to load multiple tables in a Dataset?
How can we save all data from dataset?
How to add a check box or a dropdown list to a column in a datagrid?
Why do we need ado.net?
What is ole in vb?