SQLCancel() attempts to end the processing of an ongoing SQL statement operation that is executing synchronously. To cancel the function, the application calls SQLCancel() with the same statement handle that is used by the target function, but on a different thread. How the function is canceled depends on the operating system.
SQLRETURN SQLCancel (SQLHSTMT hstmt);
Data type | Argument | Use | Description |
---|---|---|---|
SQLHSTMT | hstmt | Input | Statement handle |
A successful return code indicates that the implementation has accepted the cancel request; it does not ensure that the processing is cancelled.
SQLSTATE | Description | Explanation |
---|---|---|
HY009 * | Argument value that is not valid | hstmt is not a statement handle. |
DB2® UDB CLI does not support asynchronous statement processing.