Execute nonquery returns no. of afected rows.So if my stored
procedure hav lot of select stmnt, delete stmnt, insert
stmnt..then what does execute nonquery returns in this case?

Answer Posted / sireesha

ExecuteNonQuery() returns one one value. the return type of
ExecuteNonQuery is integer. It returns the value that are
effected by the executeNonQuery() statement.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we do database operations without using any of the ado.net objects?

535


What does adodb stand for?

508


What is a non query?

518


What is ado and rdo?

502


What are the features of ado.net?

505






What is a data control clerk?

574


What is serialization and de-serialization in .net? How can we serialize the dataset object?

518


What is a sqldataadapter?

526


What is the use of Dataview?

575


Can we create Synonymns in MS Acess,My Sql Server,Sql Server? But iam we can create in oracle!

1640


What is concurrency? How will you avoid concurrency when dealing with dataset? (One user deleted one row after that another user through his dataset was trying to update same row. What will happen? How will you avoid the problem?)

585


What are dataproviders?

549


What is the full form of ado?

516


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?

560


What are the Features and disadvantages of dataset

557