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()).
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()