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

KB12609: FreeForm SQL report using database reserved key words for attribute, metric, or table names causes a database specific error in MicroStrategy Developer 10.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


FreeForm SQL report using database reserved key words for attribute, metric, or table names causes a database specific error in MicroStrategy Developer 10.x

SYMPTOM:
When a FreeForm SQL report uses database reserved keywords in SQL, an error occurs in the SQL Engine. For instance, when 'Order' is used as a table name in an Access database, the following error occurs when executing a report:
 

ka02R000000kc2KQAQ_0EM440000002FfA.jpeg

 


Error: SQL Generation Complete
QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. Syntax error in FROM clause.
Error in Process method of Component: QueryEngineServer, Project Strategy Tutorial, Job 1038, Error Code= -2147212544.

NOTE: Error messages are specific to the each database type. Different databases will give different error messages.
 
CAUSE:
Strategy SQL is using the database reserved keyword 'Order' as table name, as shown below:
 

ka02R000000kc2KQAQ_0EM440000002FfC.jpeg

 
ACTION:
Do not use database reserved key words in Strategy Free Form SQL reports as a table name.
 
Reserved words are database dependent, and a list of these words can be found in each database's documentation. Consult a database administrator for more information on these reserved words.
 


Comment

0 comments

Details

Knowledge Article

Published:

June 1, 2017

Last Updated:

June 1, 2017