UltraLite User's Guide
Tutorial: A Sample UltraLite Application
Introduction
File locations for the sample application
Source code is provided for both the consolidated database and the UltraLite application in the Samples\UltraLite\CustDB and Samples\MobiLink\CustDB subdirectories of your SQL Anywhere directory.
Consolidated database source In this chapter we use the Adaptive Server Anywhere CustDB database as the consolidated database.
You can also build Sybase Adaptive Server Enterprise, Microsoft SQL Server, or Oracle consolidated databases and run the application against those database-management systems.
You can use one of the SQL scripts in the Samples\MobiLink\CustDB directory to build a consolidated database for a DBMS other than Adaptive Server Anywhere.
custase.sql Sybase Adaptive Server Enterprise.
custdb.sql Sybase Adaptive Server Anywhere.
custdb2.sql IBM DB2.
custmss.sql Microsoft SQL Server.
custora.sql Oracle 8.
The Adaptive Server Anywhere consolidated database is already built and installed. You only need the scripts to make a consolidated database using another relational database product. You do not need the scripts for this tutorial.
Application source The source code for the sample application is in two parts.
The user interface code for each platform is held in a separate subdirectory of Samples\UltraLite\CustDB, named for each supported development tool.
The data access code is help in the Samples\UltraLite\CustDB subdirectory of your UltraLite directory.
The embedded SQL data access code is held in custdb.sqc.
The C++ API data access code is held in custdbapi.cpp.
For information on the UltraLite development process, see Designing UltraLite Applications.
For a list of supported development tools, see Supported platforms. For information on building the application for each supported platform, see the following locations:
Palm Computing Platform (CodeWarrior) Building the CustDB sample application from CodeWarrior.
Palm Computing Platform (PRC Tools) Building the CustDB sample application with PRC Tools.
Windows CE Building the CustDB sample application.