What is the difference between excute query and excute
Answers were Sorted based on User's Feedback
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|
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|
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|
Answer / bhagwat prasad sharma
1)>>> when we insert data into database, delete data from database, update data from database than use ExecuteNonQuery
but when we select data from database than use ExecuteQuery
statement . that solves
|Is This Answer Correct ?||3 Yes||0 No|
Why does a user need nothing more than a Web browser to view ASP.NET pages?
What is a session in asp.net?
What is the lifespan for items stored in ViewState?
What is the difference between a default skin and a named skin?
Where does the Web page belong in the .NET Framework class hierarchy?
What is CSS? What is the advantage os using CSS in ASP.NET Web Applications?
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
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
What is difference between ASP and ASP.NET ?
What is the best way to search any exact information on google?
How does the iis work?
Types of objects in ASP ?