The following procedure describes how to create components that participate in distributed transactions in Sybase EAServer, MTS, or COM+.
Programming components deployed in Sybase EAServer, MTS or COM+
Call SQLDriverConnect once for each Adaptive Server connection you want to establish.
Call SQLExecDirect once for each insert or update SQL statement.
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 Adaptive Server ODBC Driver automatically enlists in the global transaction. Then, the transaction coordinator commits or rolls back the distributed transaction.