Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlExecuteDirect

Executes a FairCom DB SQL command directly.

Declaration

CTSQLRET ctsqlExecuteDirect(pCTSQLCMD hCmd, CTSQLCHAR* sqlcmd)

Description

ctsqlExecuteDirect() executes aFairCom DB SQL command directly without the need to a previous preparation of the statement. It is also possible to split the command in preparation (ctsqlPrepare()) and execution (ctsqlExecute()).

  • hCmd the command handle.
  • sqlcmd the sql command string.

Return

ctsqlExecuteDirect() returns CTSQLRET_OK on success.

Symbolic Constant

Explanation

SQL_ERR_BADPARAM

Bad parameter specification for the statement.

SQL_ERR_NOTOPENED

Cursor not opened

SQL_ERR_NOTSELECT

Open for non select statement

SQL_ERR_NOMEM

Memory allocation failure.

See Also

ctsqlPrepare(), ctsqlExecute()

TOCIndex