Navigation:  Advantage .NET Data Provider > AdsTransaction Class > AdsTransaction Methods >


Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Rolls back the database transaction.

public void Rollback();

public void Rollback( string strSavepoint);


If the transaction is still active, this will roll back the transaction running on the associated AdsConnection. If the transaction has already been committed or rolled back, this will throw an InvalidOperationException. If a savepoint is specified the transaction will be rolled back to the savepoint.


When using nested transactions, calling Rollback without a savepoint name rolls back all work to the outermost begin transaction operation and ends the transaction.

See Also