Skip to content

SQLPutData

SQLPutData#

The user can use this when inserting data while running command.

Syntax#

SQLRETURN SQLPutData (
        SQLHSTMT    stmt,
        SQLPOINTER  data,
        SQLLEN      strLength);

Arguments#

Data Type Argument In/Output Description
SQLHSTMT stmt Input Command handle
SQLPOINTER data Input Pointer of data buffer
SQLLEN strLength Input Data size

Return Values#

SQL_SUCCESS
SQL_SUCCESS_WITH_INFO
SQL_INVALID_HANDLE
SQL_ERROR

Description#

This inserts data while executing a statement. This is used with SQLParamData.

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
SQLParamData