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 the difference between statement and preparedstatement interface?

993


What are the benefits of ADO.NET?

1118


The answers which posted above is not satisfied my requirement? Can some one post teh exact answer? Thanx

2019


how Sequence to connect and retrieve data from database using dataset?

1286


Which is faster datareader or dataadapter?

982


What is disconnected scenario in entity framework?

1103


What is the default Timeout for SqlCommand.CommandTimeout property?

1006


What is microsoft ado.net?

1138


Explain sqlconnection object?

994


Which one of the objects is a high-level abstraction of the connection and command objects in ado.net?

1142


Is it possible to load multiple tables in a Dataset?

1068


How can we save all data from dataset?

994


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

966


Why do we need ado.net?

955


What is ole in vb?

896