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 difference between connected and disconnected architecture in ado.net?

1100


What connected data?

891


How to enable and disable connection pooling?

996


What is disconnected data?

980


What we do with the object of ado.net dataset after using it?

953


What is the use of connection object in ado.net?

995


What is dataset object? Explain the various objects in dataset.

981


How can we load multiple tables in a dataset?

1092


Explain the differences between oledb sql server, oledbdotnet provider?

949


What is DataRowCollection?

1033


What is the default timeout specified for "sqlcommand.commandtimeout" property?

977


Why ca not we use multiple inheritance and garbage collector paralelly in .net?

950


Explain ado.net features?

989


Which components of a data provider is used to retrieve, insert, delete, or modify data in a data source?

1085


What are the 3 major types of connection objects in ado.net?

940