RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLMonitor.TraceList Property

Lists the messages that have passed between SQLConnection and the database server.

Pascal
property TraceList: TWideStrings;
C++
__property TWideStrings TraceList;

Use the TraceList property to access the list of SQL commands that has already been logged. While the SQL monitor is active, the TraceList property is automatically updated when the connection component passes a message to the database server. 

Only messages that meet the criteria specified by the TraceFlags property are added to TraceList.  

TraceList is a TStrings descendant. As such, you can use its methods to  

Clear the list. 

Access the individual commands in the list. 

Add your own comments to the list. For example, you may want to indicate when your application initiates certain actions so that you can see clearly what SQL messages correspond to what actions. 

 

SQLConnection 

Active 

TraceFlags 

SaveToFile 

LoadFromFile 

TraceCount 

Debugging dbExpress Applications

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!