Restriction: This topic applies only when the Enterprise Server feature is enabled.
To complete the definition of a SQL Server XAR, add the following values in the
Open string field:
DSN=odbc_dsn[,USRPASS=userid.password][,TM=tmname]
[,RMRECOVERYGUID=guid][,TIMEOUT=timeoutvalue]
[,LOCALTX={T|F}]
[,ISOLEVEL={CR|RR|SS|SZ|UR}][,ESLOGGING=0001]
- odbc_dsn
- The ODBC Data Source Name used to connect to the data source as defined within the Windows ODBC Data Source Administrator
utility.1
- userid
- The user ID required to connect to the data source.1
- password
- The password required to connect the user ID to the data source.1
- tmname
-
Restriction: Windows environment only.
The transaction manager name used for diagnostics by the Microsoft Distributed Transaction Coordinator (MSDTC).
Micro Focus recommends that you specify the transaction manager name as a string that uniquely identifies the host machine and
enterprise server instance. The
tmname value is restricted to 40 characters. If not specified, the TM value defaults to
Micro Focus Enterprise Server.
- guid
-
Restriction: Windows environment only.
A 36-character GUID used to optimize recovery processing.
- timeoutvalue
- The amount of time in milliseconds that MSDTC waits for transactions to complete. If not specified, the default is 0, meaning
no time limit.
- LOCALTX, ISOLEVEL, and ESLOGGING
- See
SQL xa_open string Configuration Options for more information.
1 Alternatively, you can specify the DSN, user ID, and password by manually coding them into the
esmssql.cbl source. This can be helpful if you want to ease security. To do this, search for CUSTOMIZE within
esmssql.cbl to see where to apply the required changes.
Configuring MSDTC and SQL Server to act as an XA resource manager
To configure MSDTC and SQL Server to act as an XA resource manager:
- Start the Windows Component Services Administrative tool.
- Open the Properties page for
.
- On the Security tab, check
Enable XA Transactions.
Configuring a remote machine to act as transaction coordinator
Using a remote machine as a transaction coordinator could improve performance because
Enterprise Server and SQL Server are not required to compete for resources on the same machine. To configure a remote machine to act as a transaction
coordinator:
- On the host machine, start the Windows Component Services Administrative tool.
- Open the Properties page for
.
- On the
MSDTC tab, uncheck
Use local coordinator.
- In the
Remote coordinator host name field, type the computer name or IP address of the machine you want to act as the transaction coordinator, or click
Select to select a machine.