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 / 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

Explain how to copy the contents from one table to another table and how to delete the source table in ado.net?

868


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

1041


What is meant by executenonquery?

938


What is aggregating data ?

960


What are all features of ADO.Net?

984


What is an ado connection?

973


What does datareader object do?

1005


What is the difference between the clone() and copy() methods of the dataset class?

1088


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

1047


Does executenonquery return a value?

952


What is disconnected scenario in entity framework?

1115


What are the core objects of ADO.NET?

1048


Which provider is used to connect ms access, oracle, etc…?

1003


Give an example of a .net application which connects to microsoft access database using ado.net classes.

1151


Explain the differences between oledb sql server, oledbdotnet provider?

1014