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 difference between entity framework and ado.net?
Which is faster sqldataadapter and sqldatareader?
How will you fill the gridview by using datatable object at runtime?
What is data control techniques?
how to create a quiz software using 4 options to answer and how to check with answers in the database and award marks....
What are the different namespaces used in the project to connect the database? What data providers available in .net to connect to database?
Explain why canot we use multiple inheritance and garbage collector paralelly in .net?
What is the difference in record set and dataset?
Define Execute Scalar?
Is it possible to edit data in Repeater control?
How to connect and retrieve data from database using dataset
Explain the difference in an abstract class and an interface?
What is the purpose of using adodb?
Explian About DataAdapters
List all the steps in order, to access a database through ado.net?