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 are the major challenges in accessing data from a database?

1063


What is ado code?

994


What do you mean by ‘batch updates’?

1082


What is sql connection in ado.net?

1010


What is a control toolbox?

1016


What is a serialized object?

1097


What is the difference between sqlcommand and sqldataadapter?

1033


What is Serialization in .NET? what are the types of Serialization?

1121


What is the difference between connected and disconnected environment?

1168


What is the use of Dataview?

1188


What is ado.net full form?

1033


What is a sqldataadapter?

1053


If a table contains 20000 records. In a page at each time 100 records to be displayed.

930


What are ado.net objects?

1198


Describe ado.net object model in detail.

1052