HPE NonStop SQL/MX Error – 2111 Statement was compiled as if optimization level were ‘MEDIUM’.

In this blog post, let’s learn about the error message “2111 Statement was compiled as if optimization level were ‘MEDIUM’.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

2111 Statement was compiled as if optimization level were ‘MEDIUM’.

Reason for the Error

The SQL/MX compiler attempted to compile this query with maximum optimization level but failed. It then successfully compiled this query with medium optimization level.

Solution

This is an informational message. The statement was too complex to be compiled with maximum optimization level and the compiler ran out of memory trying to do so. So, it recompiled the statement with medium optimization level. To prevent this warning, set the optimization level to medium or low

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

In this blog post, let’s learn about the error message “1104 Default value string is too long for column column-name.”...
  • Data
  • December 3, 2024
In this blog post, let’s learn about the error message “3165 The precision or exponent value specified in value was...
  • Data
  • December 3, 2024
In this blog post, let’s learn about the error message “2051 Either control optionoption name or value ‘value’is not valid.”...
  • Data
  • December 3, 2024