Progress
Language Reference
DBTASKID Function
Returns an INTEGER that uniquely identifies a database’s transaction.
SYNTAX
integer-expression
The sequence number of a database the Progress session is connected to. For example, DBTASKID(1) returns information on the first database the Progress session is connected to, DBTASKID(2) returns information on the second database the Progress session is connected to, etc. If you specify a sequence number that does not correspond to a database the Progress session is connected to, the DBTASKID function returns the unknown value (?).
logical-name or alias
A character expression that evaluates to the logical name or alias of a database that is connected to the current Progress session. If the character expression does not evaluate to the logical name or alias of a connected database, DBTASKID returns the unknown value (?).
NOTE: You must enclose all character strings in quotes.NOTES
- If the application is not in a transaction, DBTASKID returns the unknown value (?).
- If the client is connected to two databases and both databases participate in the transaction, DBTASKID does not necessarily return the same value for each database. The value DBTASKID returns for a database is for that database only.
- DBTASKID supports Version 8 and Version 9 Progress databases only. DBTASKID returns the unknown value (?) for DataServers, Version 7 Progress databases, and the temporary table database.
- DBTASKID is designed for database replication. When you create a log record for a transaction, you can call DBTASKID and store the transaction ID. When you load the transaction, you can group log records by transaction ID. For more information on database replication, see the Progress Database Administration Guide and Reference, and the reference entry for the RAW-TRANSFER Statement in this book.
SEE ALSO
DBCODEPAGE Function, DBCOLLATION Function, DBTYPE Function, DBVERSION Function, LDBNAME Function
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |