您好,我是小DAI,专注于数据库管理员相关的技术问答,请问有什么可以帮您?

systransactions

说明

仅限 master 数据库

systransactions 包含有关 Adaptive Server 事务的信息,但它不是常规表。

表的某些部分是在用户查询时动态创建的,而其它部分则存储在 master 数据库中。 不允许更新动态创建的 systransactions 列。

xactkey

唯一的 Adaptive Server 事务关键字

starttime

事务的启动日期

failover

表示事务故障切换状态的值。 有效值包括:

0 — Resident Tx

1 — Failed-over Tx

2 — Tx by Failover-Conn

type

表示事务类型的值。 有效值包括:

1 — Local

3 — External

98 — Remote

99 — Dtx_State

coordinator

表示协调方法或协议的值。 有效值包括:

0 — None

1 — Syb2PC

2 — ASTC

3 — XA

4 — DTC

state

表示事务当前状态的值

state 值 事务状态
1 Begun
2 Done Command
3 Done
4 Prepared
5 InCommand
6 In Abort Cmd
7 Committed
8 InPostCommit
9 In Abort Tran
10 In Abort Savept
65537 Begun-Detached
65538 Done Cmd-Detached
65539 Done-Detached
65540 Prepared-Detached
65548 Heur Committed
65549 Heur Rolledback

connection

表示连接状态的值。 connection 值和状态为:

1 — Attached

2 — Detached

status

内部事务状态标志

status2

附加的内部事务状态标志

spid

服务器进程 ID;0 表示进程分离

masterdbid

事务的起始数据库

loid

锁所有者 ID

namelen

xactname 的长度

xactname

事务名称或 XID

srvname

远程服务器的名称(对于本地服务器为 null)

nodeid

留作将来使用(不能用于集群环境)

instanceid

实例的 ID(只能用于集群环境)