UltraLite ActiveX User's Guide
Tutorial: An UltraLite Application for Pocket IE
The database schema is a description of the database. It describes the tables, indexes, keys, and publications within the database, and all the relationships between them.
A database schema may be created using the UltraLite Schema Painter or the ulinit utility. The following procedure uses ulinit to create a database schema based on an Adaptive Server Anywhere database.
To create the database schema
Create a directory on your computer for this tutorial.
The remainder of the tutorial assumes that this directory is c:\tutorial\pie. If you create a directory with a different name, use that directory instead of c:\tutorial\pie throughout the tutorial.
Copy the contents of the Samples\UltraLiteActiveX\pie subdirectory of your SQL Anywhere 9 installation to c:\tutorial\pie.
Create the consolidated database.
Open a command prompt and navigate to c:\tutorial\pie. Run the following command:
dbinit custdbsrv.db
Start the MobiLink synchronization server.
Run the following command:
runml.bat
Create the UltraLite schema using the ulinit utility.
For more information about the ulinit utility, see UltraLite initialization utility.
Run the following command:
makeschemas.bat
To deploy the database schema to your device
Start the File Viewer.
From eMbedded Visual Basic 3.0, choose Tools
The File Viewer connects to your device.
Choose Connection
Open the folder corresponding to your device type.
Select your device.
Choose File
Choose File
Browse to c:\tutorial\pie\ul_custdb.usm. Click Open to export the file to your device.