UltraLite Embedded SQL User's Guide
Tutorial: Build an Application Using Embedded SQL
The following procedure uses the source file generated in the previous lesson, sample.cpp, to create the sample embedded SQL UltraLite application.
To build the sample embedded SQL UltraLite application
Ensure that the Adaptive Server Anywhere personal database server is still running.
Configure the project settings:
Right-click esql and select Settings.
The Project Settings dialog appears.
Select All Configurations under the Settings For drop down menu.
Click the Link tab and add the following runtime library to the Object/Library Modules box.
ulimp.lib
Click the C/C++ tab. Select Preprocessor from the Category drop-down menu. Ensure that the following are included in the Preprocessor definitions:
__NT__
Click OK to close the dialog.
Build the executable:
Select Build
The esql executable is created. Depending on your settings, the executable may be created in a Debug directory within your tutorial directory.
Run the application:
Select Build
A screen appears and displays the first row of the product table.