Data.SqlExpr.TSQLConnection.TraceCallbackEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TraceCallbackEvent: TDBXTraceEvent read FTraceCallbackEvent;

C++

__property Data::Dbxcommon::TDBXTraceEvent TraceCallbackEvent = {read=FTraceCallbackEvent};

Properties

Type Visibility Source Unit Parent
event public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLConnection

Description

Provides access to the callback function that executes for every SQL command passed to or from the server.

Read TraceCallbackEvent to determine whether the SQL connection is monitoring communication between the application and the SQL server to which it connects. For example, if the application uses a TSQLMonitor component, that component assigns a value to TraceCallbackEvent, which it uses to monitor SQL commands. Changing the value of the callback would then interfere with the operation of the TSQLMonitor component.

TraceCallbackEvent is a read-only property. To assign a callback for monitoring SQL commands, use the SetTraceEvent method.

See Also