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 ado circle?
Explain executenonquery?
What do you mean by performing asynchronous operation using command object?
What are the key events of sqlconnection class?
How to check if a datareader is closed or opened? IsClosed()
Which control of the BindingNavigator returns the current position within the data source?
What are basic methods of dataadapter?
Define Execute Reader?
Which is faster datareader or dataadapter?
What are all the different methods under sqlcommand?
What is an ADO.Net?
What is the advantage of ado.net?
Explain the role of data provider in ado.net? What is the role of data provider in ado.net?
How to create dynamic gridview?
What is an ado?