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
Explain all the classes those are used for database connections between sql server and asp.net?
What are good ado.net object to replace to ado recordset object.
What are the ado.net objects?
What are the data providers in ADO.NET framework?
What is aggregating data ?
What is a column variable?
Do we use stored procedure in ADO.Net?
What is a serialized object?
What Is Difference Between Ado And Ado.net?
Explain ODP.net
Is datareader faster than datatable?
Data reader read and forward only, how is it possible to get 2 tables of data at a time?
What are the data providers used in ado.net
What is command class in ado.net?
What are all features of ADO.Net?