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

What is acid in ado.net?

959


Is bulk insert faster than insert?

871


What is difference between sqldatareader and sqldataadapter?

899


What is difference between dataset and datatable?

1101


Why do we need ado.net?

917


What is sqldatareader in ado.net?

876


How to identify the updated rows in a dataset?

976


what is the difference betwen typed dataset and untyped dataset?in general which dataset can we use in programming?

967


Give an example of a .net application which connects to microsoft access database using ado.net classes.

1088


What are dataproviders?

914


What are the parameters that control most of connection pooling behaviors?

957


What are the advantages of using datalist?

970


How can you identify whether or not any changes are made to the DataSet object since it was last loaded?

989


Does executenonquery return a value?

894


Explain the dataadapter class in ado.net?

1144