Call Level Interface Guide and Reference

SQLAllocConnect - Allocate Connection Handle

Status of this Function since DB2 CLI Version 5
Note:

In ODBC version 3, SQLAllocConnect() has been deprecated and replaced with SQLAllocHandle(); see SQLAllocHandle - Allocate Handle for more information.

Although this version of DB2 CLI continues to support SQLAllocConnect(), 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:

   SQLAllocConnect(henv, hdbc);

for example, would be rewritten using the new function as:

   SQLAllocHandle(SQL_HANDLE_DBC, henv, hdbc);


[ Top of Page | Previous Page | Next Page ]