RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBDataBase.TraceFlags Property

Specifies the database operations to track with the SQL Monitor at runtime.

Pascal
property TraceFlags: TTraceFlags;
C++
__property TTraceFlags TraceFlags;

Use TraceFlags to specify which database operations the SQL Monitor should track in an application at runtime. TraceFlags is only meaningful for the SQL Monitor, which is provided to enable performance tuning and SQL debugging when working with remote SQL database servers.

Note: Normally trace options are set from the SQL Monitor rather than setting TraceFlags in application code.
The value of a session component's TraceFlags property determines the initial settings of the TraceFlags property for database components associated with the session. 

Because TraceFlags is a set property, an application can specify different combinations of flags to monitor different combinations of statements. For example, the following statement limits monitoring to database connections and SQL statement preparation:

TraceFlags := [tfConnect, tfQPrepare];
    TraceFlags = [tfConnect, tfQPrepare];

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!