Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Before the application can execute a statement, it must allocate a statement handle as follows:
The application declares a variable of type HSTMT. It then calls SQLAllocHandle and passes the address of this variable, the handle of the connection in which to allocate the statement, and the SQL_HANDLE_STMT option. For example:
SQLHSTMT hstmt1;
SQLAllocHandle(SQL_HANDLE_STMT, hdbc1, &hstmt1);
The Driver Manager allocates a structure in which to store information about the statement and calls SQLAllocHandle in the driver with the SQL_HANDLE_STMT option.
The driver allocates its own structure in which to store information about the statement and returns the driver statement handle to the Driver Manager.
The Driver Manager returns the Driver Manager statement handle to the application in the application variable.
The statement handle identifies which statement to use when calling ODBC functions. For more information about statement handles, see Statement Handles.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today