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

What is the difference between linq and ado.net?

515


What is ado.net objects?

523


What is untyped dataset?

542


What is connection in ado.net?

536


What is full form of ado?

539






Command objects uses, purposes and their methods.

523


How to aggregating data across related tables?

556


What is the role of the dataset object in ado.net?

571


What is the DataTableCollection?

579


How would you connect to database using .NET?

576


What do you mean by performing asynchronous operation using command object?

517


What are the core objects of ADO.NET?

589


Explain the difference between an ado.net dataset and an ado recordset?

537


Explain how to find the given query is optimised one or not?

515


What does executenonquery () method return?

504