If i am expecting a single result from sqlserverdatabase
then what command should i follow ?sqlcommand.executereader
(commandbehaviour.singleresult)or sqlcommand.executescalar()

Answer Posted / raji

single result

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to load multiple tables in a Dataset?

527


What are good ado.net object to replace to ado recordset object.

570


What are dcl commands?

508


What are the advantages using ado.net?

537


How to add a check box or a dropdown list to a column in a datagrid?

535






What is ado.net architecture?

492


Which database is the ado.net?

498


What is ado object model?

515


What are datareaders?

532


Define executenonquery?

523


What is ole in excel?

520


Explain how to call the sql commands asynchronously in ado.net version 2.0?

508


What is the difference between an ADO.NET Dataset and an ADO Recordset?

549


What is ado and rdo?

502


What is difference between dataset and datatable?

511