Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » MobiLink - Getting Started » Exploring the CustDB Sample for MobiLink » CustDB setup

Setting up the CustDB consolidated database Next Page

Setting up an UltraLite remote database


The following procedure creates a remote database for CustDB. The CustDB remote database must be an UltraLite database.

The application logic for the remote database is located in samples-dir\UltraLite\CustDB. It includes the following files:

You complete the following steps to install the sample application to a remote device that is running UltraLite:

To install the sample application to a remote device
  1. Start the consolidated database.

  2. Start the MobiLink server.

  3. Install the sample application to your remote device.

  4. Start the sample application on the remote device.

  5. Synchronize the sample application.

Example

The following example installs the CustDB sample on a Palm device running against a DB2 consolidated database.

  1. Ensure that the consolidated database is running:

    For a DB2 database, open a DB2 Command Window. Type the following command, where userid and password are the user ID and password for connecting to the DB2 database:

     db2 connect to CustDB user userid using password
  2. Start the MobiLink server:

    For a DB2 database, at a command prompt, run the following command:

    mlsrv10 -c "DSN=CustDB" -zp
  3. Install the sample application to your Palm device:

  4. Start the CustDB sample application on your Palm device:

  5. Synchronize the remote application with the consolidated database. You will only need to complete this step when you have made changes to the database.