FreeProc()


" "

short FreeProc(long ProcID)

Description

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

Parameters

Name Description
ProcID The ID of the procedure as returned from InitializeProc().

Return Value

The return value will be zero if successful or non-zero if unsuccessful. Non-zero is returned if the result set is empty or no rows are retrieved from the database. Calling GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information is not helpful in this case because the message could be misleading.