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

SQL Anywhere 10.0.1 » UltraLite - Database Management and Reference » Exploring the CustDB Samples for UltraLite

Lesson 1: Building and running the CustDB application Next Page

Lesson 2: Logging in and populating the UltraLite remote database

The following procedure starts the sample UltraLite client application, the sample MobiLink server, and populates the UltraLite remote database by synchronizing the UltraLite CustDB sample remote database to obtain an initial set of data from SQL Anywhere consolidated database. In this walkthrough the sample application is running on the same desktop computer as the MobiLink server. However, you can also deploy a client application to the device and achieve the same result.

The data you download depends on the user ID you enter when you start the application. By default, user ID 50 is used to log into UltraLite.

To start and synchronize the sample application
  1. Launch the MobiLink server sample.

    At a command prompt enter:

    mlsrv10 -c "DSN=SQL Anywhere 10 CustDB" -zu+ -vcrs

    Or, from the Start menu, choose Programs > SQL Anywhere 10 > MobiLink > MobiLink Server Sample.

    If the server starts, a console window appears displaying messages on the MobiLink server's status.

  2. Launch the UltraLite client sample application.

    From the Start menu, choose Programs > SQL Anywhere 10 > UltraLite > Windows Sample Application.

  3. Enter an employee ID.

    Type 50 then press Enter.

    After you enter the employee ID, the application synchronizes. The MobiLink server console window displays messages showing the synchronization taking place.

    The default synchronization script determines which subset of customers, products, and orders is downloaded to the application when user 50 logs in. In this case, only orders that have not yet been approved are downloaded.

  4. Confirm that the application contains data.

    A company name and a sample order should appear in the application window.