Contents Index Table property sheet: General tab The UltraLite initialization utility

UltraLite Database User's Guide
  Utility Programs
    The UltraLite Schema Painter

UltraLite Schema Painter Tutorial


In this tutorial, you build a single-table database schema and export it to Palm.

For more information on UltraLite schemas, see Databases and schema files.

When creating UltraLite schemas for a Palm device, the following information is necessary:

To complete this tutorial you need a directory to hold the files you create. 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 using the UltraLite Schema Painter

  1. Start the UltraLite Schema Painter:

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

  2. Create a new schema file called tutCustomer.

  3. Create a table called customer.

    Column name Data type (Size) Column Allows NULL values? Default value
    Id integer No autoincrement
    Fname char (15) No None
    Lname char (20) No None
    City char (20) Yes None
    Phone char (12) Yes 555-1234
  4. Click File > Save to save the tutcustomer.usm file.

  5. Export a Palm schema file.

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.


Contents Index Table property sheet: General tab The UltraLite initialization utility