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 dbcontext and dbset in entity framework?

482


What are dcl commands?

506


What is Data view?

560


What is the functionality of data provider in ado.net?

483


What is connection string?

522






Some important instruction regarding ADO.NET connection string ?

539


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

509


What are the major challenges in accessing data from a database?

525


Explain the two fundamental objects in ado.net?

499


Explain how to create dynamic gridview?

516


Is ado.net dead?

527


What DataReader class do in ADO.NET ?

581


What is isolation?

563


What is ole db query?

518


What is namespace in ado.net?

496