Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - C and C++ Programming » Common Features of UltraLite C/C++ Interfaces

Common Features of UltraLite C/C++ Interfaces Next Page

Understanding the SQL Communications Area

All UltraLite C/C++ interfaces utilize the same UltraLite run time engine. The APIs each provide access to the same underlying functionality.

All UltraLite C/C++ interfaces share the same basic data structure for marshaling data between the UltraLite runtime and your application. This data structure is the SQL Communications Area or SQLCA. Each SQLCA has a current connection, and separate threads cannot share a common SQLCA.

Your application code must carry out the following tasks before connecting to a database:

The following functions are equivalent ways of carrying out these tasks.

Initialize SQLCAEmbedded SQLdb_init
Initialize SQLCA and start databaseEmbedded SQL



C++The database is started as part of the connection function in UltraLite_DatabaseManager