HPE NonStop SQL/MX Error – 3211 Maximum length of LONG VARBINARY is value.

In this blog post, let’s learn about the error message “3211 Maximum length of LONG VARBINARY is value.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

3211 Maximum length of LONG VARBINARY is value.

Reason for the Error

You attempted a CREATE TABLE table name (columnname long varbinary(N)) where N > current MAX_LONG_VARCHAR_DEFAULT_SIZE setting.

Solution

Decrease the CREATE TABLE statement’s long varbinary column width N or increase the current MAX_LONG_VARCHAR_DEFAULT_SIZE setting and resubmit