ODBC_SQLSetEnvAttr

4D - Documentation   Français   English   German   4D ODBC PRO, Command Theme List   4D ODBC PRO, Command Alphabetical List   Back   Previous   Next

version 2004


ODBC_SQLSetEnvAttr (attribute; value) Longint

ParameterTypeDescription
attributeLongintAttribute to set
valueLongintValue to set the attribute
Function resultLongintReturns the result of the MS ODBC API function
SQLSetEnvAttr

Description

The ODBC_SQLSetEnvAttr command sets an attribute that governs the different aspects of environments.

attribute is the environment attribute to set and can be one of the following values:

ConstantDescription
SQL_ATTR_CONNECTION_POOLINGEnables or disables connection pooling at the
environment level
SQL_ATTR_CP_MATCHDetermines how a connection is chosen from a
connection pool
SQL_ATTR_ODBC_VERSIONDetermines whether certain functionality exhibits
ODBC 2.x behavior or ODBC 3.x behavior
SQL_ATTR_OUTPUT_NTSDetermines how the driver returns string data

value is a Longint value at which to set attribute.

For more information, please see the SQLSetEnvAttr function in the MS ODBC API at http://msdn.microsoft.com/library/en-us/odbc/htm/odbcsqlsetenvattr.asp.

Function Results

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.

Example

See the example for the ODBC_SQLGetEnvAttr command.

See Also

ODBC_SQLGetEnvAttr.


4D - Documentation   Français   English   German   4D ODBC PRO, Command Theme List   4D ODBC PRO, Command Alphabetical List   Back   Previous   Next