SQLAllocStmt() - Allocate a statement handle
SQLAllocStmt() is a deprecated function
and is replaced by SQLAllocHandle().
ODBC specifications for SQLAllocStmt()
| ODBC specification level | In X/Open CLI CAE specification? | In ISO CLI specification? |
|---|---|---|
| 1.0 (Deprecated) | Yes | Yes |
Syntax
SQLRETURN SQLAllocStmt (SQLHDBC hdbc,
SQLHSTMT FAR *phstmt);Function arguments
The following table lists the data type, use, and description for each argument in this function.
| Data type | Argument | Use | Description |
|---|---|---|---|
| SQLHDBC | hdbc | input | Specifies the connection handle |
| SQLHSTMT * | phstmt | output | Points to the newly allocated statement handle |