Administrative API Reference

sqleSetTypeCtx - Set Application Context Type

Sets the application context type. This API should be the first database API called inside an application.

Scope

The scope of this API is limited to the immediate process.

Authorization

None

Required Connection

None

Version

sql.h

C API Syntax



int sqleSetTypeCtx (
sqlint32   lOptions);

API Parameters

lOptions
Input. Valid values are:

SQL_CTX_ORIGINAL
All threads will use the same context, and concurrent access will be blocked. This is the default if none of these APIs is called.

SQL_CTX_MULTI_MANUAL
All threads will use separate contexts, and it is up to the application to manage the context for each thread. See

The following restrictions/changes apply when this option is used:

Usage Notes

This API must be called before any other database call, and only the first call is effective.


[ Top of Page | Previous Page | Next Page ]