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

Executereader :-is used with read Method and it will read
the query and fill that in a dataset.we use it in
datareader.

Execute Scalar:-is used when you want a single output.It is
used with Return Value.

ExecuteNonQuery:-This Function is Used When you want to
update your query it does not perform any aoperation like:-
update,deletion,insert.It is used with Perform Action.

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you turn off cookies on a page of a website?

984


Why mvc is better than asp.net? : Asp.Net MVC

1005


What do you mean by role-based security?

1036


In which situation can you not use a viewstate?

1001


What is a runtime version?

1132


What is different in .net 1.1 and .net 2.0?

1068


What is the procedure to create the environment for asp.net? : asp.net mvc

1115


How do u deploy ur project?

2752


is gateway for sms continue connected for sending sms.how?

2308


How do cookies work?

1037


Where can I get information on cookies in asp.net?

1059


What is a session government?

948


What are the different types of Caching techniques in ASP.NET?

1103


Where session id is stored?

1032


How many types of session in ASP.NET

1126