Status of this Function since DB2 CLI Version 5
Note: |
In ODBC version 3, SQLAllocEnv has been deprecated and replaced with SQLAllocHandle() see SQLAllocHandle - Allocate Handle for more information. Although this version of DB2 CLI continues to support SQLAllocEnv, we recommend that you begin using SQLAllocHandle() in your DB2 CLI programs so that they conform to the latest standards. See DB2 CLI Functions Deprecated for Version 5 for more information on this and other deprecated functions. |
Migrating to the New Function
The statement:
SQLAllocEnv(&henv);
for example, would be rewritten using the new function as:
SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &henv);