Administrative API Reference

sqleAttachToCtx - Attach to Context

Makes the current thread use a specified context. All subsequent database calls made on this thread will use this context. If more than one thread is attached to a given context, access is serialized for these threads, and they share a commit scope.

Scope

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

Authorization

None

Required Connection

None

Version

sql.h

C API Syntax



int sqleAttachToCtx (
void           *pCtx,
void           *reserved,
struct sqlca   *pstSqlca);

API Parameters

pCtx
Input. A valid context previously allocated by sqleBeginCtx - Create and Attach to an Application Context.

reserved
Reserved for future use. Must be set to NULL.

pstSqlca
Output. A pointer to the sqlca structure. For more information about this structure, see SQLCA.


[ Top of Page | Previous Page | Next Page ]