(Cluster environments only) Determines whether or not a connection can process an external transaction.
xact_connmigrate_check(“txn_name”)
is a transaction ID. This parameter is optional.
An XA transaction “txn_name” is running on instance “ase1”.
select xact_connmigrate_check("txn_name")
-------- 1
An XA transaction “txn_name” is running on instance “ase2”. The connection can migrate.
select xact_connmigrate_check("txn_name")
-------- 1
An XA transaction “txn_name” is running on instance “ase2”. The connection cannot migrate.
select xact_connmigrate_check("txn_name")
-------- 0
If an XID is specified, xact_connmigrate_check returns:
1 if the connection is to the instance running the specified transaction, or the connection is to another instance in a migratable state
0 if the connection or transaction ID does not exist, or the connection is to another instance that is not in a migratable state
If an XID is not specified, xact_connmigrate_check returns:
1 if the connection is in a migratable state
0 if the connection does not exist or is not in a migratable state
ANSI SQL – Compliance level: Transact-SQL extension.
Any user can execute xact_connmigrate_check.
Functions xact_owner_instance