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

Execute nonquery returns no. of afected rows.So if my stored
procedure hav lot of select stmnt, delete stmnt, insert
stmnt..then what does execute nonquery returns in this case?

Answer Posted / sandyni

Execute nonquery effects only for DML like Update delete
and insert statements only,

for select statement we have to choose ExecuteScalar or
ExecuteReader methods. these methods can return datareader
and gives the result for your query.

Is This Answer Correct ?    18 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Command objects uses, purposes and their methods.

933


differance between ADO vs ADO.Net?

996


What are the data providers used in ado.net

971


What is the difference between ADO and ADO.Net?

1023


What is aggregating data ?

912


How do you update a dataset in ado.net and how do you update database through dataset?

876


Explain which name space is used to get assembly details?

909


How do you update database through dataset?

939


Define bubbled event?

870


What are the advantages and disadvantages of using datalist?

986


What is ado.net and its architecture?

1076


Explain how to pass multiple tables in datasets simultaneously?

988


What is the difference between Data adaptor and Data set?

977


What is sqlconnection and sqlcommand?

1004


What is ole db query?

924