EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB36340: SQL hint shows incorrect user information when the report cache is used in MicroStrategy SQL Engine 9.x-10.x


Community Admin

• Strategy


SYMPTOM:
 
In Strategy SQL Engine 9.x-10.x, when the report cache is used, SQL hint in the report SQL view shows incorrect user information.
 
 
 
 
STEPS TO REPRODUCE: 
 
 
Follow steps below to reproduce the issue with Strategy Tutorial project:
 
 
 
 

  • In Strategy Developer, create a report and put the attribute Month in the row, as shown below:
     
ka04W000000OcZYQA0_0EM440000002DkM.png
  • Go to Data menu and choose the option ‘VLDB properties’ as shown below:
     
ka04W000000OcZYQA0_0EM440000002DkQ.png
  • Add SQL hint “/*!u*/” under Select/Insert option, as shown below:
     
ka04W000000OcZYQA0_0EM440000002DkN.png
  • Go to Project Configuration and enable cache, as shown below:
     
ka04W000000OcZYQA0_0EM440000002DkX.png
  • Run the report as administrator in SQL view, note that the report cache is not used and SQL hint shows corrent user information, as show below:
     
ka04W000000OcZYQA0_0EM440000002DkP.png
  • Switch another user to logon project source. Run the same report in SQL view, as show below:
     
     
ka04W000000OcZYQA0_0EM440000002Dkb.png

Note that the SQL hint shows incorrect user information when the report cache is used.
    
 
CAUSE:
This is working as designed.
Once a cache is generated (by the first user running the report), the cache is used by Strategy SQL Engine for subsequent runs of the same report.
 
ACTION:
Disable report cache when using SQL hint in Strategy 9.x or Switch to Report Caching Per User from Project Configuration>Caching>Result Caches>Creation>Cache Creation Options>Create caches per user.
 
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

May 10, 2017

Last Updated:

May 10, 2017