(Cluster environments only) Returns the instance ID on which the distributed transaction is running.
xact_owner_instance(“txn_name”)
is a transaction ID.
An XA transaction “txn_name” is running on instance “ase1”.
select xact_owner_instance(txn_name)
------- 1
An XA transaction “txn_name” is not running.
select xact_owner_instance(txn_name)
------- NULL
xact_owner_instance returns:
The instance ID of the instance running the transaction, or
Null, if the transaction is not running
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute xact_owner_instance.
Functions xact_connmigrate_check