QUERY_PLAN Option

Specifies whether or not additional query plans are printed to the SAP Sybase IQ message file.

Allowed Values

ON, OFF

Default

OFF

Scope

Option can be set at the database (PUBLIC) or user level. When set at the database level, the value becomes the default for any new user, but has no impact on existing users. When set at the user level, overrides the PUBLIC value for that user only. No system privilege is required to set option for self. System privilege is required to set at database level or at user level for any user other than self.

Requires the SET ANY PUBLIC OPTION system privilege to set this option. Can be set temporary for an individual connection or for the PUBLIC role. Takes effect immediately.

Remarks

When this option is turned ON, SAP Sybase IQ produces textual query plans in the IQ message file. These query plans display the query tree topography, as well as details about optimization and execution. When this option is turned OFF, those messages are suppressed. The information is sent to the <dbname>.iqmsg file.

Related reference
QUERY_DETAIL Option
QUERY_PLAN_AFTER_RUN Option
QUERY_PLAN_AS_HTML Option