Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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 is the main function of razor in asp.net? : asp.net mvc

1 Answers  


What is a Windows Service and how does its lifecycle differ from a "standard" EXE?

2 Answers  


What is strong name and which tool is used for this ?

3 Answers   Patni,


What are the various ways of securing a web site that could prevent from hacking etc ?

1 Answers  


What are the different types of sessions in asp.net?

0 Answers  


Define caching.

0 Answers  


Is it possible to migrate visual interdev design-time controls to asp.net?

0 Answers  


What r new things introduced in ASP.NET 2.0 in comparision to ASP.NET 1.1

1 Answers  


Difference Between GridView And DataList

2 Answers  


What are uri parameters?

0 Answers  


What methods are fired during the page load? Init()

0 Answers  


What are the different types of sessions in asp.net? Name them?

0 Answers  


Categories