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

List the types of authentication supported by asp.net?

0 Answers  


What is request and response in asp.net?

0 Answers  


What are the versions of garbage collection?

0 Answers   Proteans,


What are the various authentication mechanisms in ASP.NET ?

1 Answers   Digital GlobalSoft, Satyam,


What are the advantages of using session?

0 Answers  






Describe a diffgram ? Write any one use of that?

3 Answers   Siebel,


Types of session management in ASP.NET ?

2 Answers   Microsoft,


Does google crawl redirects?

0 Answers  


Explain about asp.net 2.0 themes?

0 Answers  


What are the different web pages?

0 Answers  


What is the difference between ASP.NET Webforms and ASP.NET MVC?

0 Answers  


How many types of cookies are there in asp.net?

0 Answers  


Categories