Allocates memory for a cursor and associates the cursor with the connection specified by hDBC.
DBAPI.bdh
DB_AllocCursor(in hDBC: number, out cCursor: cursor): number;
SQL return code
The following values are possible:
SQL_SUCCESS. Function completed successfully.
SQL_SUCCESS_WITH_INFO. Call native ODBC function SQLError for detailed information.
SQL_INVALID_HANDLE. Invalid database connection handle.
SQL_ERROR. Call native ODBC function SQLError for detailed information.
Parameter | Description |
---|---|
hDBC | Valid handle to a database connection. This handle must have been returned from a previous call to DB_Connect . |
cCursor | Variable receiving the allocated cursor |
rCode := DB_AllocCursor(hDBC, c1);
DBApi01.bdf, Trans.bdf, MutexLogin.bdf