Show TOC

FORCE_NO_SCROLL_CURSORS OptionLocate this document in the navigation structure

Forces all cursors to be non-scrolling.

Allowed Values

ON, OFF

Default

OFF

Scope

Option can be set at the database (PUBLIC) or user level. At the database level, the value becomes the default for any new user, but has no impact on existing users. 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

By default, all cursors are scrolling. Scrolling cursors with no host variable declared cause SAP IQ to create a buffer for temporary storage of results. Each row in the result set is stored to allow for backward scrolling.

Setting FORCE_NO_SCROLL_CURSORS to ON reduces temporary storage requirements. This option can be useful if you are retrieving very large numbers (millions) of rows. However if your front-end application makes frequent use of backward-scrolling cursor operations, query response will be faster with this option set to OFF.

If your front-end application rarely performs backward-scrolling, make FORCE_NO_SCROLL_CURSORS = ‘ON’ a permanent PUBLIC option, to use less memory and improve query performance.