Introduction:
Description:
In
previous post I explained differences between ExecuteNonQuery, ExecuteReader and
ExecuteScalar in asp.net. Now I will explain ExecuteNonQuery concept with one
example in asp.net using C#.net,
VB.NET.
ExecuteNonQuery
ExecuteNonQuery
method will return number of rows effected with INSERT, DELETE or UPDATE
operations. This ExecuteNonQuery method will be used only for insert, update
and delete, Create,
and SET
statements.