what is Execute NOn Query?
Answer Posted / hanna mae
You can use ExecuteNonQuery to change the data in a database
without using a DataSet. Do this by executing UPDATE,
INSERT, or DELETE statements.
Although ExecuteNonQuery does not return any rows, output
parameters or return values that are mapped to parameters
are populated with data.
For UPDATE, INSERT, and DELETE statements, the return value
is the number of rows affected by the command. For all other
types of statements, and for rollbacks, the return value is -1.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What is the difference between an ADO.NET Dataset and an ADO Recordset?
How does entity framework work?
What are the benefits of ADO.NET?
What is typed dataset ?
What are the ado.net connection pooling parameters?
What are the steps you will take to improve performance? Will you use dataset or datareader?
Which method in OLEDBAdapter is used to populate dataset with records?
What is ole db query?
What is openrowset?
How do you implement locking concept for dataset?
How do you merge 2 datasets into the third dataset in a simple manner?
What is sqldatasource?
What are the data providers used in ado.net
What is partial class?
What is data relation in ado.net?