Collection Contents Previous Next PDF

UltraLite Database User's Guide

Tutorial: Working with UltraLite Databases

Lesson 1: Create an UltraLite database schema


In this lesson, you build a single-table UltraLite database schema for Windows CE, Windows XP, and Palm OS devices.

This lesson is the first in a complete tutorial on working with UltraLite databases. You may also have reached this lesson from one of several UltraLite component tutorials, in which case you should return to your main tutorial after creating a schema file.

For more information on UltraLite schemas, see Creating UltraLite databases and schemas.

To start this tutorial, create a directory to hold the schema and other files. This directory is assumed to be C:\tutorial\. If you create your tutorial directory elsewhere, supply the path to your location instead of c:\tutorial\ throughout.

To create a schema file

  1. Start the UltraLite Schema Painter:

    Choose Start > Programs > SQL Anywhere 9 > UltraLite > UltraLite Schema Painter.

  2. Create a new schema file called tutCustomer.

  3. Create a table called customer.

  4. Click File >  Save to save the tutcustomer.usm file.

  5. Optionally, export a Palm schema file.

    If you intend to work with the Palm OS as a target platform, you may want to export a schema definition for the Palm OS.

You have now defined the schema of an UltraLite database. Although this database contains only a single table, you can use many tables in UltraLite databases.

UltraLite component tutorial readers 
You may be carrying out this lesson as part of an UltraLite component tutorial or you may be working through the complete tutorial in this chapter. If you reached this lesson from an UltraLite component tutorial, you only need the schema file and so you can return to your main tutorial now. Otherwise, continue.

To create an UltraLite database file

  1. From the Tools menu of the UltraLite Schema Painter, choose Create UltraLite Database.

    The Create UltraLite Database dialog appears.

  2. Choose Multibyte Character Database (Desktop) and leave the other settings at their default values.

  3. Click OK to create the database.


Collection Contents Previous Next PDF