RunProc()


" "

short RunProc(long ProcID)

Description

This function runs the specified procedure. The procedure runs to completion or until an error occurs. You cannot access any of the results of the procedure (for example, data from a query that was run) through this programming interface. However, any files exported or data saved by the procedure are available after the run.

Parameters


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

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

GetProcText()
GetProcVariables()
InitializeProc()
SetProcVariable()