DbiQPrepareProc

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

DbiQPrepareProc

Return to chapter overview

C syntax

DBIResult DBIFN DbiQPrepareProc (hDb, pszProc, uParamDescs, paParamDescs, pRecBuf, phStmt);

Delphi syntax

function DbiQPrepareProc (hDb: hDBIDb; pszProc: PChar; uParamDescs: Word; paParamDescs: pSPParamDesc; pRecBuff: Pointer; var hStmt: hDBIStmt): DBIResult stdcall;

Description

DbiQPrepareProc prepares and optionally binds parameters for a stored procedure.

Parameters

hDb                Type: hDBIDb                (Input)
Specifies the database handle.

pszProc                Type: pCHAR                (Input)
Stored procedure name.

uParamDescs                Type: UINT16                (Input)
Specifies the number of parameter descriptors.

paParamDescs                Type: pSPParamDesc                (Input)
Pointer to the array of parameter descriptors.

pRecBuf                Type: pBYTE                (Input)
Pointer to the record buffer (or NULL if parameters are not to be bound.)

phStmt                Type: phDBIStmt                (Output)
Specifies the returned statement handle.

Usage

Use with the existing functions DbiQExec and DbiQFree. If pRecBuf is NULL, then the parameters are not bound.

DbiResult

Meaning

DBIERR_NONE

The stored procedure was successfully prepared for execution.

See also

DbiQExecProcDirect, DbiQSetProcParams, DbiQExec, DbiQExecDirect, DbiQFree, DbiOpenSPList, DbiOpenSPParamList