Programming components deployed in Sybase EAServer, MTS, or COM+

The following procedure describes how to create components that participate in Distributed Transactions in Sybase EAServer, MTS, or COM+.

StepsTo program components deployed in Sybase EAServer, MTS or COM+

  1. Call SQLDriverConnect once for each Sybase ASE connection you want to establish.

  2. Call SQLExecDirect once for each insert or update SQL statement.

  3. Deploy your component to MTS, and configure the transaction attributes as needed.

The transaction coordinator creates a distributed transaction as needed, and the component that uses the ASE ODBC driver automatically enlists in the global transaction. Then, the transaction coordinator will commit or roll back the distributed transaction.