ODBC tracing

: I am looking for a way to trace the queries issued by an ODBC application
: for which i do not have the source.

: Something like II_EMBED_SET would be great, but is there anything
: like that?

Well, silly, that is exactly what you should use!

Sorry, after playing around I got it right. ODBC runs on top of
INGRES/Net which is part of tools for dos/windows, which gives you 
all the standard environment variables. I added a line to the config.ing
file in the \ingres\files\ directory and it dumped all the queries for me.

II_EMBED_SET=printqry;qryfile c:\t.log

Worked nicely


 Regards
 --Cor

 cor@cs.sun.ac.za
Ingres Q & A
To William's Home Page

© William Yuan 2000

Email William