Data.SqlExpr.TSQLMonitor.MaxTraceCount

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MaxTraceCount: Integer read FMaxTraceCount write FMaxTraceCount;

C++

__property int MaxTraceCount = {read=FMaxTraceCount, write=FMaxTraceCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLMonitor

Description

Indicates the maximum number of messages that can be logged.

Set MaxTraceCount to limit the number of messages that can be added to the TraceList property. When MaxTraceCount is 0 or greater, the SQL monitor logs every message until the limit specified by MaxTraceCount. Once that limit has been reached, the SQL monitor discards messages until the number of messages in TraceList has been reduced or the value of MaxTraceCount is changed.

If MaxTraceCount is –1, there is no limit on the number of messages that can be added to TraceList.

If MaxTraceCount is 0, the SQL monitor does not log any messages.

Note: Setting MaxTraceCount affects whether messages can be added to TraceList, but does not affect messages that have already been logged. Thus, if you set MaxTraceCount to a value less than the number of strings currently in TraceList, the number of logged messages will exceed MaxTraceCount.

See Also