Monitor only one Connection

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
serocool
Posts: 7
Joined: Tue 07 Oct 2014 12:11

Monitor only one Connection

Post by serocool » Thu 12 May 2016 10:44

Hi,
i have two Uniconnections in my Project and i will only monitor (UnisqlMonitor) one Connection (one for Logging and one for Live Data). Is this possible and if it is, how can i do this?
Best Regards

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Monitor only one Connection

Post by AlexP » Thu 12 May 2016 11:19

hello,

Such functionality are not supported.

serocool
Posts: 7
Joined: Tue 07 Oct 2014 12:11

Re: Monitor only one Connection *SOLVED*

Post by serocool » Thu 12 May 2016 14:27

OK, i found an Solution by my self :)

TForm1.UniSQLMonitor1SQL(Sender: TObject; Text: string;
Flag: TDATraceFlag);
begin
if TUniTable(Sender).Connection=MyConnection then ...
or
if TUniQuery(Sender).Connection=MyConnection then ...
....
end;

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Monitor only one Connection

Post by AlexP » Fri 13 May 2016 05:04

Glad to see that you have found the solution. If you have any other questions, feel free to contact us

Post Reply