Frequently Asked Interview Questions

Interview Questions on ADO.NET

Interview questions on ADO.NET Page 2
Use ExecuteReader when the sql command or stored procedure that is being executed returns a set of rows.
If the command or stored procedure performs INSERT, DELETE or UPDATE operations, then we use ExecuteNonQuery method. ExecuteNonQuery method returns an integer specifying the number of rows inserted, deleted or updated.
Use ExecuteScalar, when a sql command or sp that is being executed return single value.

Most Visited Pages

Home | Site Index | Contact Us