April 28, 2005, 03:33 PM
Ron RSpooling SQL
Is there any way to view the sql that is generated from a focus report request?
April 28, 2005, 03:43 PM
Francis MarianiYou can put the following code in the program you would like to trace, or put the code in the cofgi file edasprof.prf to turn on tracing for all requests. After running the program (the output format should be HTML), just right-click your browser and select View Source, the SQL commands and relevant messages will be displayed.
SET TRACEOFF=ALL
-*SET TRACEON = SQLCALL
SET TRACEON = SQLTRANS
SET TRACEON=STMTRACE//CLIENT
SET TRACEON=SQLAGGR//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER=ON
-RUN
April 28, 2005, 03:46 PM
LeahAs an addendum to the post on showing sql
If you don't want to get data just see the code
Add as well.
SET XRETRIEVAL=OFF