Access the ODBC Data Source Administrator dialog box to configure a new user DSN or system DSN.
To configure a new user DSN or system DSN:
All subsequent steps are the same to configure either a user DSN or a system DSN.
The Create New Data Source dialog box opens.
The General page for the IBM® Informix® ODBC Driver Setup dialog box opens.
For a description of the values, see Table 1 and Table 2.
To save the values you chose and verify that your DSN connects successfully, click Apply & Test Connection. An ODBC Message dialog box opens. The box tells you if your connection was successful or, if it was not, tells you which Connection-tab value is incorrect.
Option | Description |
---|---|
Auto commit optimization | This option defers automatic commit operations
while cursors remain open and can reduce database communication when
the application is using non-ANSI logging databases. This option is
available only as a connection option:
or
as a connection attribute string: "OptimizeAutoCommit" The default is: 1 (enabled). |
Open-Fetch-Close optimization | This option causes the driver to buffer the
open, fetch, and close cursor messages to the server. In addition,
this option eliminates one or more message round trips when you use SQLPrepare, SQLExecute,
and SQLFetch statements to fetch data with a cursor.
This option is available only as a connection option:
or
as a connection attribute string: "OPTOFC" The default is: 0 (disabled). |
Insert cursors | This option reduces the number of network messages
sent to and from the server by buffering the inserted rows that are
used with arrays of parameters and insert statements. This option
can greatly improve the performance of bulk insert operations, and
is available as both connection and statement options:
or
as a connection attribute string: "EnableInsertCursors" The default is: 0 (disabled). |
Scrollable cursor | If this option is activated, IBM Informix ODBC Driver, Version 2.90
and later, supports only scrollable, static cursors. This option is
available only as a connection option:
or
as a connection attribute string: "EnableScrollableCursors" The default is: 0 (disabled). |
Report KeySet cursors | This option causes the driver to report (through SQLGetInfo)
that it supports forward-only, static, and keyset-driven cursor types,
although the driver only supports forward-only and static cursors.
When you set this option, the driver enables dynaset-type functions,
such as functions for Microsoft Visual
Basic. These functions require drivers that support keyset-driven
cursor types. This option is also available as a connection attribute:
or
as a connection attribute string: "ReportKeysetCursors" The default is: 0 (disabled). |
Report standard ODBC types only | If you activate this feature, the driver causes SQLGetTypeInfo to
map all occurrences of user-defined types (UDTs) as follows:
The driver maps multiset, set, row, and list data types to SQL_C_CHAR or SQL_C_BINARY, which is the default UDT FetchType to SQL_C_CHAR features.The default is: 0 (disabled). |
Describe decimal floating point as SQL_REAL / SQL_DOUBLE | This option describes all floating-point decimal
columns as Float (SQL_REAL or SQL_DOUBLE). A floating-point decimal
column is a column that was created without a scale, ex: DECIMAL(12).
Some prepackaged applications such as Visual Basic cannot properly
format Decimal columns that do not have a fixed scale. To use these
applications you must enable this option or redefine the column with
a fixed scale. There is a disadvantage to enabling this option however, SQL_DECIMAL is an exact numeric data type while SQL_REAL and SQL_DOUBLE are approximate numeric data types. A SQL_DECIMAL with a precision of 8 or less aree described as SQL_REAL, with a precision greater than 8 it is SQL_DOUBLE. The default is: 0 (disabled). |
Do not use LVARCHAR | Causes SQLGetTypeInfo to not report LVARCHAR
as a supported type of DATA_TYPE of SQL_VARCHAR. Some applications such as MS Access97 use LVARCHAR instead of VARCHAR even for columns that are less than 256 bytes long. The minimum number of bytes transmitted for LVARCHAR is higher than for VARCHAR and many LVARCHAR columns can result in the rowset size exceeding the maximum. Enable this option only if your SQL_VARCHAR columns are less than 256 bytes in length. The default is: 0 (disabled) |
Report CHAR columns as wide CHAR columns | Causes SQLDescribeCol to report char columns
as wide char columns. SQL_CHAR column is reported as SQL_WCHAR, SQL_VARCHAR
as SQL_WVARCHAR and SQL_LONGVARCHAR column as SQL_WLONGVARCHAR The default is: 0 (disabled) |
Length in Chars for SQLGetDiagRecW | If enabled, the SQLGetDiagRecW
API treats the BufferLength Parameter as the number of characters. The default is: FALSE (disabled) |
When your application connects to this DSN, the values that you entered are the default entries for the DSN connection.