The scope of this API is limited to the immediate process.
None
None
sql.h
SQL_API_RC SQL_API_FN
sqleAttachToCtx (
void * pCtx,
void * reserved,
struct sqlca * pSqlca);
If more than one thread is attached to a given context, only one of the attached threads can issue SQL at a given time, since they share the same connection and unit of work. In this case, when one thread is executing SQL, the other threads will wait for that SQL to complete before they are allowed to execute SQL.