Using distributed transaction support
The IBM® i Access for Windows client supports Microsoft Transaction Server (MTS) and the Component Services model, with the IBM i Access ODBC driver, the IBMDASQL OLE DB provider, and the DB2® for IBM i .NET provider.
About this task
MTS
MTS is a Microsoft component-based programming model and run-time environment for developing, deploying, and managing Internet server applications. In many three-tier environments, Active Server Pages (ASP) call MTS components to access databases, mainframe applications, and message queues. Used with IBM i Access for Windows running in the middle-tier of a three-tier environment, MTS components manage transactions between client applications, IBM i Access for Windows components, and the databases involved in the transactions.
MTS uses Microsoft Distributed Transaction Coordinator (MSDTC) in order to manage transactions that span multiple Database Management Systems (DBMS), and to ensure two-phase commit integrity when dealing with transactions whose implementations depend on mutual success.
In newer Windows server models, MTS has been replaced with the Component Services model. The IBM i Access for Windows ODBC, OLE DB, and .NET providers support the Component Services model in the same manner as they support MTS.
Implementation notes
- If the MSDTC cannot load the IBM i Access ODBC driver, the SQLSetConnectAttr( SQL_ATTR_ENLIST_IN_DTC ) will fail with reason code of 2 (XaRmCreate failed).
- If you are using SSL, or any other configurable
value on the IBM i Navigator,
your system connection name in System i® Navigator must match the connection name specified on the client
PC managed by MTS. MSDTC uses the same connection names as IBM i
Access for Windows ODBC client PCs managed
by MTS to connect to the DB2 for
i database.
To change the connection properties of the MSDTC connections, you
must change the system account registry.
One way to do this is to use Incoming Remote Command (IRC) in combination with the CWBENV utility:
dialog in
Procedure
Results
For more information about MTS or the Component Services model, refer to the Microsoft Web site.