Dotnet-Project Framework documentation.

GenericDataHelper.ExecuteNonQuery Method (String)

Execute a stored procedure via a Command (that returns no resultset and takes no parameters) against the database

public static int ExecuteNonQuery(
   string spName
);

Parameters

spName
The stored procedure name

Return Value

An int representing the number of rows affected by the command

Example

int result = ExecuteNonQuery("PublishOrders");

See Also

GenericDataHelper Class | DotnetProject.Data Namespace | GenericDataHelper.ExecuteNonQuery Overload List