SQLAllocHandle (Env Menu)

You must allocate an EnvironmentHandle before you can execute any other ODBC functions through the ODBC Test menu. You can allocate an EnvironmentHandle by executing SQLAllocHandle with a HandleType of SQL_HANDLE_ENV or choosing Full Connect on the Connect menu. You do not need to allocate an EnvironmentHandle before running any auto tests.

After ODBC Test successfully calls SQLAllocHandle with a HandleType of SQL_HANDLE_DBC, it creates a connection window.

After ODBC Test successfully calls SQLAllocHandle with a HandleType of SQL_HANDLE_STMT, it adds the statement handle to the statement handle list of the current connection window.