SQLExecute

Function

The SQLExecute function executes a prepared SQL statement using SQLPrepare. The statement is executed using the current value of any application variables that were bound to parameter markers by SQLBindParameter.

Prototype

1
SQLRETURN SQLExecute(SQLHSTMT    StatementHandle);

Parameter

Table 1 SQLExecute parameters

Keyword

Description

StatementHandle

Statement handle to be executed.

Return Values

Precautions

If SQLExecute returns SQL_ERROR or SQL_SUCCESS_WITH_INFO, the application can then call SQLGetDiagRec, set HandleType and Handle to SQL_HANDLE_STMT and StatementHandle, and obtain the SQLSTATE value. The SQLSTATE value provides the detailed function calling information.

Examples

See Examples.