Show TOC

MAX_CLIENT_NUMERIC_PRECISION OptionLocate this document in the navigation structure

Controls the maximum precision for numeric data sent to the client.

Allowed Values

0 – 126

Default

0

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

When SAP IQ performs its calculation, it promotes data types to an appropriate size that ensures accuracy. The promoted data type might be larger in size than Open Client and some ODBC applications can handle correctly.

When MAX_CLIENT_NUMERIC_PRECISION is a nonzero value, SAP IQ checks that numeric result columns do not exceed this value. If the result column is bigger than MAX_CUBE_RESULT allows, and SAP IQ cannot cast it to the specified precision, the query returns this error:

Data Exception - data type conversion is not possible %1
SQLCODE = -1001006
Note

In SAP SQL Anywhere, the maximum value supported for the numeric function is 255. If the precision of the numeric function exceeds the maximum value supported, you see the error: The result datatype for function '_funcname' exceeds the maximum supported numeric precision of 255. Please set the proper value for precision in numeric function, 'location'