Use the SET SQLCA embedded SQL statement to tell the SQL preprocessor to use a specific SQLCA for database requests.
There are no prerequisites for this task.
Initialize Each SQLCA used in your program with a call to db_init.
At the top of your program or in a header file, set the SQLCA reference to point at task specific data:
EXEC SQL SET SQLCA 'task_data->sqlca';
This statement does not generate any code and does not affect performance.
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|