SYMPTOM:
When a user attempts to execute a datamart report in Strategy Developer 9.4.1 and 10.x against Sybase IQ 12.5, the following error occurs:
SQLExecDirect. Syntax error or access violation: Variable '#table_name#' not found

CAUSE:
The above SQL syntax 'Select ... Insert into #table_name#', does not constitute valid SQL syntax against Sybase IQ 12.5, it is however valid against Sybase IQ 12.6.
ACTION:
Change the VLDB setting 'Table Creation Type' to 'Explicit Table' for the datamart database instance, as shown below:
