Sets or returns a value that indicates whether the query should be prepared on the server as a temporary stored procedure, using the ODBC SQLPrepare API function, prior to execution, or just executed using the ODBC SQLExecDirect API function (ODBCDirect workspaces only).
Syntax
VOIDSetPrepare(LPVARIANT pv);
COleVariantGetPrepare(VOID);
Set Parameters
Type | Example | Description |
LPVARIANT | pv | A pointer to a variant with one of the values shown below. |
The setting or return value can be one of the following constants:
Constant | Description |
dbQPrepare | (Default) The statement is prepared (that is, the ODBC SQLPrepare API is called). |
dbQUnprepare | The statement is not prepared (that is, the ODBC SQLExecDirect API is called). |