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

KB40600: "The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value." error message is received when executing reports against SQL Server 2005 in MicroStrategy 9.4.1


Community Admin

• Strategy


 
SYMPTOM:
 
When running reports which contain attributes based on the data type DATE against SQL Server 2005, the following error message is seen:
  

ka04W000000OhBQQA0_0EM440000002DBm.jpeg

 
 
Report: xxxxx
Job: xxx
Status: Execution failed
Error: SQL Generation Complete. QueryEngine encountered error: Execute Query failed.
Error type: Odbc error. Odbc operation attempted: SQLExecDirect.
 
[The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.
Error in Process method of Component: QueryEngineServer, Project Strategy Tutorial, Job xxx, Error Code=.2147212544.
Starting Time xx:xx:xx
Execution failed
 
 
CAUSE:
 
The Strategy SQL Engine generates SQL Statements based on the default date format that does not match with the one set on the database side. For example, the warehouse data is stored with the date format yyyymmdd (e.g, 20101130) and the Strategy SQL Engine considers the date format  yyyy-mm-dd (e.g, 2010-11-30), instead. 
 
 
ACTION:
 
Change the date format setting in the VLDB property Select/Insert -> Date Format at the project level as shown:
 
 

ka04W000000OhBQQA0_0EM440000002DBd.jpeg

 
 
 
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

June 1, 2017

Last Updated:

June 1, 2017