Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


What is the difference between excute query and excute
nonquery.?

Answers were Sorted based on User's Feedback



What is the difference between excute query and excute nonquery.?..

Answer / riddhi

excute nonquery :-- use when insert,update,delete will fire.

excute query:-- when non dml query is used.

Is This Answer Correct ?    18 Yes 1 No

What is the difference between excute query and excute nonquery.?..

Answer / shreekant

execute qurey is used for a select statement
ex:"select * from employees";
execute nonquery is used when insert, update,delete statement.
ex:insert into employees values("yourrecirds");
delete from employees

Is This Answer Correct ?    10 Yes 0 No

What is the difference between excute query and excute nonquery.?..

Answer / rina baranwal

use ExecuteQuery with "select" query but we use Execute
NonQuery with Update,insert and delete query.

Is This Answer Correct ?    7 Yes 0 No

What is the difference between excute query and excute nonquery.?..

Answer / bhagwat prasad sharma

1)>>> when we insert data into database, delete data from database, update data from database than use ExecuteNonQuery
statement .
but when we select data from database than use ExecuteQuery
statement . that solves

Is This Answer Correct ?    3 Yes 0 No

Post New Answer



More ASP.NET Interview Questions

Why does a user need nothing more than a Web browser to view ASP.NET pages?

1 Answers  


What is a session in asp.net?

0 Answers  


What is the lifespan for items stored in ViewState?

2 Answers   ISST,


What is the difference between a default skin and a named skin?

0 Answers   MindCracker,


Where does the Web page belong in the .NET Framework class hierarchy?

1 Answers   Perot Systems, Visual Soft,






What is CSS? What is the advantage os using CSS in ASP.NET Web Applications?

2 Answers   PCS,


how to pass session value one url to another url.my code if session("user")="abc" then response.redirect("www.abc.com\client\home.aspx") end if. so how to pass value of session in browser url

1 Answers  


Why do I get error message "could not load type" whenever I browse to my asp.net web site?

0 Answers  


What is difference between ASP and ASP.NET ?

3 Answers   TCS,


What is the best way to search any exact information on google?

3 Answers   Intellevate,


How does the iis work?

0 Answers  


Types of objects in ASP ?

2 Answers   Microsoft,






Categories