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

SAP Sybase SQL Anywhere 16.0 » MobiLink - Getting Started » MobiLink technology » MobiLink Contact sample » Contact sample setup

 

Running the Contact sample

The Contact sample includes batch files that perform initial synchronizations and illustrate MobiLink server and dbmlsync command lines.

Prerequisites

Ensure that build.bat has been run to create the Contact sample database.

Context and remarks

You can examine the contents of the following batch files, located in %SQLANYSAMP16%\MobiLink\Contact, in a text editor:

  • step1.bat
  • step2.bat
  • step3.bat
 Task
  1. Start the MobiLink server.

    1. At a command prompt, navigate to %SQLANYSAMP16%\MobiLink\Contact.

    2. Run the following command:

      step1

      This command runs a batch file that starts the MobiLink server in a verbose mode. This mode is useful during development or troubleshooting, but has a significant performance impact and so would not be used in a routine production environment.

  2. Synchronize both remote databases.

    1. At a command prompt, navigate to %SQLANYSAMP16%\MobiLink\Contact.

    2. Run the following command:

      step2

      This is a batch file that synchronizes both remote databases.

  3. Shut down the MobiLink server.

    1. At a command prompt, navigate to %SQLANYSAMP16%\MobiLink\Contact.

    2. Run the following command:

      step3

      This is a batch file that shuts down the MobiLink server.

Results

The Contact sample is run and the remote and consolidated databases are synchronized.

Next

To explore how synchronization works in the Contact sample, you can use Interactive SQL to modify the data in the remote and consolidated databases, and use the batch files to synchronize.