This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v19.8
SQL SET OPTION
|
SQL SET OPTION ( option ; value ) | ||||||||
Parameter | Type | Description | ||||||
option | Longint |
![]() |
Number of option to set | |||||
value | Longint, String |
![]() |
New value of option | |||||
The SQL SET OPTION command modifies the value of the option passed in option.
option can have one of the following values, located in the “SQL” theme:
Constant | Type | Value | Comment |
SQL asynchronous | Longint | 1 | 0 = Synchronous connection (default value), 1 (or value other than 0) = Asynchronous connection |
SQL charset | Longint | 100 | Text encoding used for requests sent to external sources (via the SQL pass-through). The modification is carried out for the current process and the current connection. Possible values: MIBEnum identifier (see note 2) or value -2 (see note 3) By default: 106 (UTF-8) |
SQL connection timeout | Longint | 5 | Maximum timeout awaiting response when executing the SQL LOGIN command. This value must be set before opening the connection in order to be taken into account Possible values: time in seconds By default: no timeout |
SQL data chunk size | Longint | 6 | Size of data chunk to be sent to the server. This option is mainly useful with Sybase ODBC driver which does not support actual data chunk. Setting a value greater than the default one allows larger data to be sent at a time. Value: size in bytes |
SQL max data length | Longint | 3 | Maximum length of data returned |
SQL max rows | Longint | 2 | Maximum number of rows in resulting group (used for previews) |
SQL query timeout | Longint | 4 | Maximum timeout awaiting response when executing the SQL EXECUTE command. Values: time in seconds By default: no timeout |
Notes:
If the command was properly executed, the system variable OK returns 1. Otherwise, it returns 0.
Product: 4D
Theme: SQL
Number:
818
Modified: 4D v11 SQL Release 4
Modified: 4D v19.4
4D Language Reference ( 4D v19.4)
4D Language Reference ( 4D v19.5)
4D Language Reference ( 4D v19.6)
4D Language Reference ( 4D v19.7)
4D Language Reference ( 4D v19.8)