Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is basic use of data view?

1007


Explain the role of data provider in ado.net? What is the role of data provider in ado.net?

1002


Explain the overview of ado.net architecture?

1041


What is ado.net in mvc?

928


Explain the architecture of ado.net?

1068


What is difference between Dataview and Datatable?

1069


Explain the difference in an abstract class and an interface?

927


What is a dataview?

973


What is data access pattern?

943


What is the difference between connected and disconnected environment?

1106


Which architecture does Datasets follow?

1039


What is difference between executenonquery and executequery?

975


Explain the advantages and disadvantages of using datalist?

1074


What are the data providers in ADO.NET framework?

1032


What is the role of clr?

948