ADO.NET Question:
Download Questions PDF

If we are not returning any records from the database, which method is to be used?

Answer:

There is a method called Execute Non Query. This method executes the Update, Delete etc. This does not return any rows but will give the number of rows affected.

Download ADO.NET Interview Questions And Answers PDF

Previous QuestionNext Question
Can we do database operations without using any of the ADO.net objects?how can i retrieve two tables of data at a time by using data reader?
Data reader read and forward only, how is it possible to get 2 tables of data at a time?