Contents Index Lesson 1: Getting started Lesson 3: Run the UltraLite generator pdf/preface.pdf

UltraLite User's Guide
  Tutorial: Build an Application Using the C++ API

Lesson 2: Create an UltraLite database template


In this tutorial, you use the original copy of the UltraLite 9.0 Sample database (CustDB) as a reference database. The copy you placed in the APITutorial directory serves as a backup copy.

An UltraLite database template is a set of tables, and columns within tables, that are to be included in your UltraLite database. You create an UltraLite database template by creating a publication in the reference database. The publication is simply a convenient device for assembling tables and column-based subsets of tables: there is no direct connection to SQL Remote or MobiLink synchronization.

You can also define your UltraLite database by adding SQL statements to the reference database. SQL statements allow you to include joins and more advanced features in your UltraLite application. Here, we build an UltraLite database template by defining tables, as it is more simple.

The Java tutorial uses SQL statements to define the UltraLite database. For an example of how to add SQL statements to a database, see Lesson 1: Add SQL statements to your reference database.

To create the UltraLite database template

  1. Start Sybase Central.

  2. Connect to the UltraLite 9.0 Sample database.

  3. Create a publication that reflects the data you wish to include in your UltraLite database.

You have now finished designing the UltraLite database template. Leave Sybase Central and the database server running for the next lesson.


Contents Index Lesson 1: Getting started Lesson 3: Run the UltraLite generator pdf/preface.pdf