IBX.IBDatabase.TIBDatabase.TraceFlags

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TraceFlags: TTraceFlags read FTraceFlags write FTraceFlags default [];

C++

__property Ibx::Ib::TTraceFlags TraceFlags = {read=FTraceFlags, write=FTraceFlags, default=0};

Properties

Type Visibility Source Unit Parent
property published
IBX.IBDatabase.pas
IBX.IBDatabase.hpp
IBX.IBDatabase TIBDatabase

Description

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

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];