How to display the SOQL code the Salesforce adapter generates for queries


Technique

Product: Reporting Server
Release: 8206
Primary OS: Linux
Solution Date:

Problem

How to display the SOQL code the Salesforce adapter generates for queries.

Solution

The Reporting Server's STMTRACE trace component will display the SOQL. 

Instead of enabling traces at the server level and having to reconfigure them for this one component,  you can add the following statements to your query:

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

The //CLIENT will display the statements to your screen in most cases.