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

What is shadow copy?

652


What is the difference between a datareader and a dataset?

598


Which control of the BindingNavigator returns the current position within the data source?

812


Explain the difference between sqlcommand object and command behavior object?

618


What are typed and untyped dataset?

639






What are the data providers in ADO.NET framework?

672


Define bubbled event?

591


What is ado and dao?

615


What is data relation?

587


What is ado rdo dao in visual basic?

754


What are the advantages of oledb compared with other classes?

2409


What are the difference between readonly vs. Const?

591


Explain the difference between data reader and data adapter?

585


What are the namespaces used in ado.net for data access?

566


What are the different methods by which we can populate a dataset?

796