Dotnet-Project Framework documentation.

GenericDataHelper.ExecuteNonQueryTransactional Method (String)

Execute a Command (that returns no resultset and takes no parameters) against a Transaction. If an error occur, changes are rollebacked.

public static int ExecuteNonQueryTransactional(
   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.ExecuteNonQueryTransactional Overload List