DEFRECORD KDB_INFO_CONN

KDB connection information
FLD namePack formatPurpose
INFO_CONN_Type$CHAR(16)Database type
INFO_CONN_Name$CHAR(128)Database name
INFO_CONN_MajorErrorUINT(1)Last major error number
INFO_CONN_MinorErrorUINT(1)Last minor error number
INFO_CONN_SysErrorUINT(1)Last operating system errno value
INFO_CONN_ConnStatusUINT(1)Connection status
INFO_CONN_DBtypeUINT(1)Database type
INFO_CONN_LastErrorText$CHAR(256)Last error text
INFO_CONN_TransactionDepthUINT(1)WHILE TRANS transaction depth
INFO_CONN_ClientMemoryUINT(3)Memory in kb used by DB client
INFO_CONN_ConnectIdUINT(4)Unique connection identifier
INFO_CONN_ClusterInstUINT(4)Cluster node number
INFO_CONN_SessInstUINT(4)Session instance number
INFO_CONN_CursorCountUINT(2)Number of DB cursors in use

More info