Skip to content

SQLParamData

SQLParamData#

This can be used when inserting data while running command.

Syntax#

SQLRETURN SQLParamData (
        SQLHSTMT   stmt,
        SQLPOINTER *value);

Arguments#

Data Type Argument In/Output Description
SQLHSTMT stmt Input Command handle
SQLPOINTER * value Out Pointer to save address specified in SQLBindParameter

Return Values#

SQL_SUCCESS
SQL_SUCCESS_WITH_INFO
SQL_NEED_DATA
SQL_NO_DATA
SQL_INVALID_HANDLE
SQL_ERROR

Description#

This puts data while the statement is executing.

Use with SQLPutData.

Diagnosis#

SQLSTATE Description Comments
HY000 General error No error occurs explicitly
HY001 Memory allocation error This denotes to fail to allocate memory for handle.
HY010 Continuous function error
SQLBindParameter
SQLExecDirect
SQLExecute
SQLPutData