Before Execute SQL We can know the sql text in TMyConnection?

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
chintatlim
Posts: 22
Joined: Tue 09 Nov 2004 00:31

Before Execute SQL We can know the sql text in TMyConnection?

Post by chintatlim » Thu 10 May 2007 06:02

hi,
If i want to know sql text before execute/open, where can know it?

TMyConnection support before runsql event?

thank you.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 10 May 2007 07:29

You can set the Debug property to True for the component you want to trace, and add the MyDACVCL unit to the uses clause. In this case SQL statements will be shown in the Debug window before sending to the server.
Another way is to place the TMySQLMonitor component onto your form and add a handler for the OnSQL event.

Post Reply