Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to Easily Capture Generated SQL

Read-Only Read-Only Topic
Go
Search
Notify
Tools
How to Easily Capture Generated SQL
 Login/Join
 
Member
posted
Here is a technique that enables you to easily view, via your browser, the SQL generated by the reporting server when it executes a TABLE FILE request against a relational data source. It only works if the output you are creating is in HTML format.

It does not require changing ibitrace, the server configuration or using the server's web console. It should work for WebFOCUS 4.3.x and 5.2.

NOTE: I haven't tried it via Dev Studio.

Technique
---------
Add the following statements before the TABLE FILE logic you want to investigate:

SET TRACEOFF = ALL
SET TRACEON = SQLAGGR//CLIENT
SET TRACEON = STMTRACE//CLIENT
SET TRACEON = STMTRACE/2/CLIENT
SET TRACEUSER = ON

TABLE FILE table name
PRINT verb object
END

You can see the output from the trace statements by viewing the source code of the web page returned to your browser.

NOTE: This should work for most if not all SET TRACEON options - not just the SQL trace settings specified in the example.

Hope this helps! Smiler
 
Posts: 5 | Location: Melbourne, Australia | Registered: March 31, 2003Report This Post
Guru
posted Hide Post
Great- I didn't know traces could be sent back to the client!
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Guru
posted Hide Post
Jeff, this is awesome - a real time saver. I couldn't see the Trace in the "View Trace" but it shows up in the Console in WebFocus 4.3.6 PowerReporter. Thanks for sharing!!!!
 
Posts: 428 | Location: Springfield, MA | Registered: May 07, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     How to Easily Capture Generated SQL

Copyright © 1996-2020 Information Builders