SQLAllocConnect function (CLI) - Allocate connection handle
In ODBC 3.0, SQLAllocConnect() has
been deprecated and replaced with SQLAllocHandle(). Although
this version of CLI continues
to support SQLAllocConnect(), it is recommended
that you use SQLAllocHandle() in your CLI programs
so that they conform to the latest standards.
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);