What is difference between executequery and executeupdate?



What is difference between executequery and executeupdate?..

Answer / Ritu Kumari

ExecuteQuery returns a data reader with the results of the query, while ExecuteUpdate returns the number of rows affected by the command.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ADO.NET Interview Questions

Describe ado.net object model in detail.

1 Answers  


What property must be set and what method must be called in your code to bind the data from some data source to the Repeater control?

1 Answers  


What is dbcontext and dbset in entity framework?

1 Answers  


What is the provider and namespaces being used to access oracle database?

4 Answers   Microsoft,


How to check if a datareader is closed or opened? IsClosed()

1 Answers  


What is difference between ado.net and asp net?

1 Answers  


How do you update a dataset in ado.net?

1 Answers  


what is type dataset?

3 Answers  


What is acid in ado.net?

1 Answers  


what is different between SqlCommand object and Command Behaviour Object

3 Answers  


How does ado.net work?

1 Answers  


what is data access layer?

2 Answers   Honeywell,


Categories