Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - .NET Programming » UltraLite .NET 1.0 API Reference » ULTransaction class

IsolationLevel property Next Page

Commit method


Commits the database transaction.

Syntax

Visual Basic

NotOverridable Public Sub Commit() _
Implements IDbTransaction.Commit

C#

public void Commit();

Remarks

Once a transaction has been committed or rolled back, the connection reverts to automatically committing all operations as they are executed. To group more operations together, a new transaction must be created.

If Commit() fails due to a database error (for example, a referential integrity error), the transaction remains active. Correct the error and call the Commit() method again or call the ULTransaction.Rollback() to complete the transaction.

Implements

[external link] IDbTransaction.Commit

See also