When you enable tracing for an individual transaction, TDSETSPT adds the transaction to a trace table. The trace table can contain up to eight entries. For examples of trace tables, see the next section, “Specific tracing example”.
When you disable tracing for a transaction, its position in the trace table becomes available for another transaction. If all eight positions are in use, you can trace more transactions only if you turn tracing off for one of the transactions in the list or set global tracing on.
You can query the trace table in two ways:
Call TDINFSPT to determine if tracing is enabled for a specific transaction. You specify the transaction ID, and TDINFSPT returns the trace flag setting.
Call TDLSTSPT to get a list of all transactions for which tracing is currently enabled. TDLSTSPT returns this list as an array.
Copyright © 2005. Sybase Inc. All rights reserved. |