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.
Task | Interface | Function |
---|---|---|
Initialize SQLCA | Embedded SQL | db_init |
C++ | ULSqlca::Initialize | |
Initialize SQLCA and start database | Embedded SQL |
db_init db_start_database |
C++ | The database is started as part of the connection function in UltraLite_DatabaseManager |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |