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

What is the difference between ExecuteReader,ExecuteNonQuery
and ExecuteScalar.

Answer Posted / divya sharma

Execute Non Query- its for manipulation
(insert,delete,update),returns number of rows affected.

Execute Reader- accesses data in read only,forward only way
(perform commands such as select).

Execute scalar- returns only one value i.e. 1st row,1st
column, after execution of query.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain form level validation and field level validation?

1067


9. Why should we hire you over the others waiting to be interviewed?

2855


What is the Intermittent crashing of application in production?

1108


What is a 404 redirect?

1098


What is difference cookie and session?

1028


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

1032


Is data edited in the Repeater control?

1079


Describe a Windows Service and its lifecycle ?

1208


Write a code for passing ArrayList in Web API?

1594


Can any body provide me the sample web application in asp.net

2023


What is s2s tracking?

1035


How does session authentication work?

972


I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?

1983


Web API uses which library for JSON serialization?

1137


What are the properties of the eventargs argument when capturing keyboard events?

1123