Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only
  • 1.  Log to check executed cognos reports underlying SQL

    Posted 02/23/20 09:27 PM
    Hi

    I would like to check the log of executed report generated SQL instead of checking directly from "show generated SQL/MDX" from report studio designer. Could anyone share me where can I check this log? My report data package used CQM model and version is 10.2.1.
    My objective is to try to run that SQL in sql developer directly to check some performance issue.

    Thanks and Regards

    ------------------------------
    Wai Wai Data Engineer
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Log to check executed cognos reports underlying SQL

    Posted 02/24/20 04:25 AM
    It can be easily set in Administration Console, look for property called "Generate comments in native SQL".
    These online documents describe some background details:
    1. How to see which user is generating a query in Cognos Analytics
    2. Setting query service properties
    Best regards

    #CognosAnalyticswithWatson


  • 3.  RE: Log to check executed cognos reports underlying SQL

    Posted 04/11/20 01:31 AM
    Thanks Gertrud for sharing info.

    ------------------------------
    Hnin Sept Data Engineer
    ------------------------------



  • 4.  RE: Log to check executed cognos reports underlying SQL

    Posted 02/24/20 07:55 AM

    The correct way to see the SQL that a report will execute is to use the Validate action set to information level or key-transformations.

    Showing SQL as you noted, may be a good clue, but does not convey the query which is planned based on the data containers (layouts) that define how a result is to be "shaped".  

    Further, the key-transformations option will show you where query re-use may be applied or not etc.



    ------------------------------
    NIGEL CAMPBELL
    ------------------------------



  • 5.  RE: Log to check executed cognos reports underlying SQL

    Posted 04/11/20 01:32 AM
    Thanks NIGEL for sharing.

    ------------------------------
    Hnin Sept Data Engineer
    ------------------------------