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 connected and disconnected architecture in ado.net?
What connected data?
How to enable and disable connection pooling?
What is disconnected data?
What we do with the object of ado.net dataset after using it?
What is the use of connection object in ado.net?
What is dataset object? Explain the various objects in dataset.
How can we load multiple tables in a dataset?
Explain the differences between oledb sql server, oledbdotnet provider?
What is DataRowCollection?
What is the default timeout specified for "sqlcommand.commandtimeout" property?
Why ca not we use multiple inheritance and garbage collector paralelly in .net?
Explain ado.net features?
Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?
What are the 3 major types of connection objects in ado.net?