Embedded SQL is a database programming interface for the C and C++ programming languages. It consists of SQL statements intermixed with (embedded in) C or C++ source code. These SQL statements are translated by a SQL preprocessor into C or C++ source code, which you then compile.
At runtime, embedded SQL applications use a SQL Anywhere interface library to communicate with a database server. The interface library is a dynamic link library (DLL) or shared library on most platforms.
SQL Anywhere provides two flavors of embedded SQL. Static embedded SQL is simpler to use, but is less flexible than dynamic embedded SQL.
Development process overview
Running the SQL preprocessor
Embedded SQL header files
A simple example
Structure of embedded SQL programs
Loading the interface library dynamically
|Send feedback about this page via email or DocCommentXchange||Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0|