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

KB13099: ‘Database Error <>: Execute Query failed. Error type: odbc error... Incorrect syntax near ‘COLLATE’’ error occurs when browsing for attributes or opening Project Configuration in MicroStrategy Developer 10.x


Stefan Zepeda

Salesforce Solutions Architect • Strategy


When a user selects Project Configuration or browses for attributes in the report editor in MicroStrategy Developer 10.x, the following error message appears: ‘Database Error <>: Execute Query failed. Error type: odbc error... Incorrect syntax near ‘COLLATE’’

SYMPTOM:
When a user selects Project Configuration or browses for attributes in the report editor in Strategy Developer 10.x the following error message appears:

ka02R000000kVfyQAE_0EM440000002FbV.jpeg

Database Error <>: Execute Query failed. Error type: odbc error. odbc operation attempted: SQLExecDirect. Line 1: Incorrect syntax near 'COLLATE'
CAUSE:
The statement that causes the error is:
CREATE TABLE #SA00010F6CD226E4 (id CHAR(32) COLLATE database_default)
This statement is generated to create temporary tables against the metadata for search queries. This SQL cannot be changed (unlike WareHouse Catalog SQL).
This statement can also be tested on the SQL Server Query Analyzer to see if the user receives the same error message.
 
ACTION:
This issue can be resolved by changing the compatibility level of the database on SQL Server from 65 to 80, as the setting with compatibility level = 65 errors out on the statement with invalid syntax.
 


Comment

0 comments

Details

Knowledge Article

Published:

May 29, 2017

Last Updated:

May 29, 2017