Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlPrepareBatch

Prepare a batch SQL statement for execution.

Declaration

CTSQLRET ctsqlDECL ctsqlPrepareBatch(pCTSQLCMD hCmd, CTSQLCHAR* sqlcmd, INTEGER max_batch)

Description

ctsqlPrepareBatch() prepares a batch SQL statement for execution. To execute the batch, use ctsqlExecute().

  • hCmd the command handle
  • sqlcmd string containing the SQL statement
  • max_batch integer setting the max number of rows in the batch

Return

ctsqlPrepareBatch() returns CTSQLRET_OK on success.

Symbolic Constant

Explanation

SQL_ERR_BADPARAM

Bad parameter specification for the statement.

See Also

ctsqlExecute()

TOCIndex