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 Crossfire » Lesson 3: Write the sample code

Write code to synchronize Next Page

Synchronize your application


The SQL Anywhere sample database has a Customers table with columns matching those in the Customer table in your UltraLite database. The following procedure synchronizes your database with the SQL Anywhere sample 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 Demo" -v+ -zu+

    The -zu+ command line option permits automatic addition of users and generation of synchronization scripts. For more information about these options, see MobiLink Server Options.

    Verify that the MobiLink server starts and displays a server status window.

  2. Start your UltraLite Crossfire application.

  3. Click Delete repeatedly to delete all the rows in your table. Any rows left in the table would be uploaded to the Customers table in the SQL Anywhere sample database.

  4. Synchronize your application.

    Click Synchronize.

    The MobiLink server window displays the synchronization progress.

  5. When the synchronization is complete, click Next and Previous buttons to move through the rows of the table to view the data retrieved from the SQL Anywhere sample database.