SET SQLCA Statement [ESQL]

Tells the SQL preprocessor to use an SQLCA other than the default global sqlca.

Quick Links:

Go to Parameters

Go to Examples

Go to Usage

Go to Standards

Go to Permissions

Syntax

SET SQLCA sqlca

Parameters

(back to top)

Examples

(back to top)

Usage

(back to top)

The current SQLCA pointer is implicitly passed to the database interface library on every Embedded SQL statement. All Embedded SQL statements that follow this statement in the C source file use the new SQLCA. This statement is necessary only when you are writing code that is reentrant. The sqlca should reference a local variable. Any global or module static variable is subject to being modified by another thread.

Standards

(back to top)

  • SQL—Vendor extension to ISO/ANSI SQL grammar.
  • SAP Sybase Database product—Not supported by Open Client/Open Server.

Permissions

(back to top)

None