SQLMonitor 1024 bytelimit ?

SQLMonitor 1024 bytelimit ?

Postby marstave » Thu 20 Oct 2005 10:22

How can I use the SQLMonitor to trace sql strings longer than 1024
characters ?

Martin Stave
marstave
 
Posts: 2
Joined: Thu 20 Oct 2005 10:20

Postby Paul » Mon 31 Oct 2005 12:33

DbxOda have solution for this problem.
Please define the following structure

pMySQLTRACEMsgDesc = ^MySQLTRACEMsgDesc
MySQLTRACEMsgDesc = packed record { trace callback info }
pszTrace : array [0..1023] of Char;
eTraceCat : TRACECat;
ClientData : Integer;
uTotalMsgLen : Word;
PMessage : PChar;
end;

Customize CBInfo:pSQLTRACEDesc parameter to pMySQLTRACEMsgDesc and read pMySQLTRACEMsgDesc(CBInfo).PMessage field.
Paul
 
Posts: 725
Joined: Thu 28 Oct 2004 14:06

Postby marstave » Mon 31 Oct 2005 15:47

Thanks a lot. It really helped !


regards

Martin Stave
marstave
 
Posts: 2
Joined: Thu 20 Oct 2005 10:20


Return to dbExpress driver for Oracle