(Cluster environments only) Returns the instance ID on which the distributed transaction is running.
xact_owner_instance(“txn_name”)
select xact_owner_instance(txn_name)
------- 1
select xact_owner_instance(txn_name)
------- NULL
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.