SQLAllocHandle
Function
Allocates an environment, connection, or statement handle, and can replace SQLAllocEnv, SQLAllocConnect, and SQLAllocStmt.
Prototype
c
SQLRETURN SQLAllocHandle(SQLSMALLINT HandleType,
SQLHANDLE InputHandle,
SQLHANDLE *OutputHandlePtr);Parameters
Table 1 SQLAllocHandle parameters
Return Values
SQL_SUCCESS: The call is successful.
SQL_SUCCESS_WITH_INFO: Some warning information is present.
SQL_ERROR: The corresponding handle failed to be allocated.
SQL_INVALID_HANDLE: The input handle is invalid.
Example
See: Example