RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLMonitor.MaxTraceCount Property

Indicates the maximum number of messages that can be logged.

Pascal
property MaxTraceCount: Integer;
C++
__property int MaxTraceCount;

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.
 

 

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