HPE NonStop SQL/MX Error – 3174 DDL statements are not allowed in compound statements.

In this blog post, let’s learn about the error message “3174 DDL statements are not allowed in compound statements.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

3174 DDL statements are not allowed in compound statements.

Reason for the Error

You specified a compound statement that contains DDL statements.

Solution

Correct the syntax and resubmit