FreeQuery()


" "

short FreeQuery(long QueryID)

Description

This function frees the query identified by QueryID and any resources associated with it. It is important to call the Close() function before this function. If the query is in use, it is aborted and the result is unpredictable. If QueryID is invalid, it returns RS_FAILURE.

Parameters

Name Description
QueryID The ID of the query as it is returned from InitializeQuery().

Return Value

If successful, the return value is RS_SUCCESS. If unsuccessful, the return is RS_FAILURE. Calling GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information is not helpful in this case because the message could be misleading.