short Prepare(long QueryID)
Description
This function prepares the query specified by QueryID. The statement is examined by the database server, which checks for object existence, required authorizations, etc. If the query is a SELECT statement, information about the columns returned by the statement is available after completing the Prepare() function call.
Parameters
Name | Description |
---|---|
QueryID | The ID of the query, as returned from InitializeQuery(). |
Return Value
Return value will be zero if successful or non=zero if unsucessful. If the return value is non=zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.
Related Tasks