MTS Support

On Windows, the driver can take advantage of Microsoft Transaction Server (MTS) capabilities, specifically, the Distributed Transaction Coordinator (DTC) using the XA Protocol. For a general discussion of MTS and DTC, refer to the help file of the Microsoft Transaction Server SDK.

To enable DTC support, you must be accessing Sybase Adaptive Server Enterprise 12.0 or higher. You can choose either Native OLE and XA protocol distributed transactions. See the Distributed Transaction Model option documented in "Configuring Data Sources" for details.

To enable distributed transaction in the Sybase server:

  1. Assign the dtm_tm_role to each user who will participate in distributed transactions (who will log in to Adaptive Server). You can do this using the sp_role command. For example:
  2. sp_role "grant", dtm_tm_role, user_name

    In the open string for resource managers, the specified username must have the dtm_tm_role.

  3. Specify a default database other than the master for each user. Sybase cannot start distributed transactions in a master database.