AdsInTransaction

Advantage Client Engine

Returns a flag to the caller to indicate if the given connection has an active transaction

Syntax

UNSIGNED32

AdsInTransaction (ADSHANDLE hConnect,

UNSIGNED16 *pbInTrans);

Parameters

hConnect (I)

Connection handle to check. If this is 0, then all connected servers will be checked for open transactions.

pbInTrans (O)

Returns True if in a transaction, False if not.

Remarks

AdsInTransaction will return a True if the connection specified by hConnect is currently in a transaction. If zero is given as the connection handle, then pbInTrans will be set to True if any connection has an active transaction.

Example

Click Here

See Also

AdsBeginTransaction

AdsCommitTransaction

AdsRollbackTransaction

AdsFailedTransactionRecovery

AdsConnect