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 - AppForge Programming » Tutorial: A Sample Application for AppForge MobileVB » Lesson 3: Write the sample code

Write code to synchronize Next Page

Synchronize your application

The SQL Anywhere 10 CustDB database sample supplied with SQL Anywhere has a Customer table with columns matching those in the ULCustomer table in your UltraLite database. The following procedure synchronizes your database with the SQL Anywhere 10 CustDB database.

To synchronize your application
  1. From a command prompt, start the MobiLink server by running the following command.

    mlsrv10 -c "dsn=SQL Anywhere 10 CustDB" -v+ -zu+

    The -v+ option turns on verbose logging (+ means "show all"). Verbose logging is recommended during application debugging. The -zu+ option provides automatic addition of users. See MobiLink Server Options.

  2. Start the UltraLite MobileVB application.

  3. Synchronize your application.

    Click Synchronize.

    The MobiLink server window displays the synchronization progress.

  4. When the synchronization is complete, click Next and Previous to move through the rows of the table to verify that new information has been downloaded from the SQL Anywhere 10 CustDB database.