What is the difference between excute query and excute
nonquery.?
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
statement .
but when we select data from database than use ExecuteQuery
statement . that solves
Is This Answer Correct ? | 3 Yes | 0 No |
List the types of authentication supported by asp.net?
What is request and response in asp.net?
What are the versions of garbage collection?
What are the various authentication mechanisms in ASP.NET ?
1 Answers Digital GlobalSoft, Satyam,
What are the advantages of using session?
Describe a diffgram ? Write any one use of that?
Types of session management in ASP.NET ?
Does google crawl redirects?
Explain about asp.net 2.0 themes?
What are the different web pages?
What is the difference between ASP.NET Webforms and ASP.NET MVC?
How many types of cookies are there in asp.net?