Version: 7.0.0

SQLPutData ​

Function ​

Sends the actual data of a parameter (or column) to the server in batches during SQL statement execution.

Prototype ​

c
SQLRETURN SQLPutData(SQLHSTMT      StatementHandle,    
                     SQLPOINTER    *DataPtr,     
                     SQLLEN        StrLen_or_Ind);

Parameters ​

Table 1 SQLPutData parameters

Keyword

Parameter Description

StatementHandle

Statement handle.

DataPtr

Pointer to the buffer containing the actual data of the parameter.

StrLen_or_Ind

Length of *DataPtr. For character or binary data, it indicates the number of bytes sent.

Return Values ​

  • SQL_SUCCESS: The call is successful.

  • SQL_SUCCESS_WITH_INFO: Some warning information is present.

  • SQL_ERROR: Batch sending data failed.

  • SQL_INVALID_HANDLE: The input handle is invalid.

Example ​

See: Example