lrd_open_cursor

Example: lrd_open_cursorAccess Management Functions

Opens a cursor.

LRDRET lrd_open_cursor( LRD_CURSOR **mpptCursor, LRD_CONNECTION *mptConnection, int miDBErrorSeverity );

mpptCursor A pointer to a pointer to an LRD_CURSOR structure.
mptConnection A pointer to an LRD_CONNECTION structure.
miDBErrorSeverity The Error Severity Levels of a failure in a database routine.

The lrd_open_cursor function opens a cursor by setting up an LRD_CURSOR structure. You can use a single cursor to execute successive SQL statements. The structure is valid until you free it with lrd_close_cursor.

Note that VuGen's "cursor" refers to a logical resource that is associated with all types of SQL statements. This should not be confused with the embedded SQL CURSOR (for example, DECLARE CURSOR, OPEN CURSOR, etc.).

For more details refer to the Function Header File lrd.h in the include directory.

Return Values

See LRD Return Values.

Parameterization

You cannot use standard parameterization for any arguments in this function.