Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlPrepare

Prepare a SQL statement for execution.

Declaration

CTSQLRET ctsqlPrepare(pCTSQLCMD hCmd, CTSQLCHAR* sqlcmd)

Description

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

  • hCmd the command handle.
  • sqlcmd the string containing the SQL statement.

Return

ctsqlPrepare() returns CTSQLRET_OK on success.

Symbolic Constant

Explanation

SQL_ERR_BADPARAM

Bad parameter specification for the statement.

See Also

ctsqlExecute()

TOCIndex