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

What are demand-paging and pre-paging?

1 Answers   MCN Solutions,


What is voluum?

1 Answers  


How to Page Execute in asp.net(inside browser)

1 Answers   Satyam, Wipro,


What are the event handlers that can be included in the Global.asax file?

1 Answers   MindCracker,


Explain managed code an un-managed code.

1 Answers  


What is the asp.net mvc folder conventions? : asp.net mvc

1 Answers  


How do we make a poperty read only?

1 Answers   Microsoft,


What is meant by role based security? when we use this one

2 Answers  


What is application variable?

1 Answers  


What are ASHX files?

1 Answers   HCL,


What is the difference between file-based dependency and key-based dependency?

1 Answers  


What is the compiled object?

1 Answers   eXensys,


Categories