Example of Embedded SQL
Embedded SQL is an environment that is a combination of C/C++ program code and pseudo-code.
SQL Communications Area Initialization
The SQL Communications Area (SQLCA) is an area of memory that is used for communicating statistics and errors from the application to the database and back to the application. The SQLCA is used as a handle for the application-to-database communication link.
Host variables
Embedded SQL applications use host variables to communicate values to and from the database. Host variables are C variables that are identified to the SQL preprocessor in a declaration section.
Data fetching
Fetching data in Embedded SQL is done using the SELECT statement.
User authentication
User authentication can be controlled using the ULGrantConnectTo and ULRevokeConnectFrom methods.