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

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere embedded SQL » Introduction to embedded SQL


Running the SQL preprocessor

The SQL preprocessor is an executable named sqlpp.

The SQLPP command line is as follows:

sqlpp [ options ] sql-filename [ output-filename ]

The SQL preprocessor processes a C program with embedded SQL before the C or C++ compiler is run. The preprocessor translates the SQL statements into C/C++ language source that is put into the output file. The normal extension for source programs with embedded SQL is .sqc. The default output file name is the sql-filename with an extension of .c. If the sql-filename already has a .c extension, then the output file name extension is .cc by default.

Reprocessing embedded SQL

When an application is rebuilt to use a new major version of the database interface library, the embedded SQL files must be preprocessed with the same version's SQL preprocessor.

For a full listing of the command line options, see SQL preprocessor.