Share this page

# lrd_open_context

Opens a context (CtLib and ODBC).

    LRDRET lrd_open_context( LRD_CONTEXT **mpptContext, unsigned int muiDBType, long mliLibVersionBehavior, unsigned int muiOption, int miDBErrorSeverity );

mpptContext | A pointer to a pointer to an LRD_CONTEXT structure.
muiDBType | The target database type.
mliLibVersionBehavior | The default library version behavior.
muiOption | One of the Open Context Options.
miDBErrorSeverity | The Error Severity Levels of a failure in a database routine.

The lrd_open_context function opens a context for a ctlib function.

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.

## Example

In the following example, lrd_open_context opens a context for an ODBC database session.

    lrd_open_context(&Cntx1, LRD_DBTYPE_ODBC, 0, 0, 0);
    lrd_open_connection(&Con1, LRD_DBTYPE_ODBC, "", "", "Flight32_QuadBase",Cntx1, 0, 0);
    lrd_db_option(Con1, OT_ODBC_TXN_READ_COMMITTED, 0, 0);
    lr_think_time(7);
    lrd_open_cursor(&Csr1, Con1, 0);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: