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 Execute NOn Query?

Answers were Sorted based on User's Feedback



what is Execute NOn Query?..

Answer / nandu

ExecuteNonQuery

Use: when we are talking about a single database record - in Update, Insert, Delete and Get by Id. In all these cases we can use input/output/input-output parameters. Please note that from the application architecture point of view it is also good practices when your Insert and Update stored procedure returns changed record exactly like Get By Id method does.

Conclusion

Always use ExecuteNonQuery except: when you have a set of records - use ExecuteReader and when you have a single output value that cannot be defined as a parameter - use ExecuteScalar. Hope this helped to clarify something.

Is This Answer Correct ?    1 Yes 0 No

what is Execute NOn Query?..

Answer / mouli

Execute non Query is used to execute any SQL statement
(insert ,delete ,update) or a stored procedure

Is This Answer Correct ?    1 Yes 0 No

what is Execute NOn Query?..

Answer / anuj katiyar

Return the no of affected roh in databse

Is This Answer Correct ?    1 Yes 1 No

what is Execute NOn Query?..

Answer / pavan

This function is used to execute the DMLcommands. It return
int value resulting number of rows get affected.

Is This Answer Correct ?    1 Yes 1 No

what is Execute NOn Query?..

Answer / parag

Execute non Query is used to execute more than one command
at the time like in DML command.

Is This Answer Correct ?    0 Yes 0 No

what is Execute NOn Query?..

Answer / suman zalodiya

ExecuteNonQuery() is used when you run rhe query that
doesn't return anything.For example insert,update,delete
etc.

Is This Answer Correct ?    0 Yes 2 No

what is Execute NOn Query?..

Answer / kamalakannan

update Request.QueryString aslo Execute non query

Is This Answer Correct ?    5 Yes 9 No

what is Execute NOn Query?..

Answer / anna

it returns the no. of queries executed successfully

Is This Answer Correct ?    40 Yes 85 No

what is Execute NOn Query?..

Answer / r

Execute NOn Query

Is This Answer Correct ?    25 Yes 88 No

Post New Answer

More ADO.NET Interview Questions

how to add a selected row of a gridview to another gridview without reloading the page??

2 Answers  


what are the two key events for the sql connection class? explain the differnce between the two.

2 Answers   HCL, NIIT, Zensar,


What is commandbuilder in ado.net?

0 Answers  


once data is fetched into dataset connection gets closed. but in datareader connection is always maintained...then why datareader is fast and mainly recommended ?

2 Answers  


Which object needs to be closed?

0 Answers  


Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!

0 Answers  


What provider ADO.net use by default?

10 Answers   Accenture, TCS,


What is the provider being used to access oracle database?

0 Answers  


Which object of ado contains datarow datacolumn collection?

0 Answers  


What is row state?

0 Answers  


What are the two fundamental objects in ADO.NET?

6 Answers  


How to get oledb connection?

3 Answers  


Categories