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 » UltraLite - C and C++ Programming » Application development » UltraLite C++ application development using embedded SQL

 

Synchronization setup for an embedded SQL application

Synchronization is a key feature of many UltraLite applications. This section describes how to add synchronization to your application.

Members of the structures in the embedded SQL API are similar to the UltraLite C++ API.

The synchronization logic that keeps UltraLite applications up to date with the consolidated database is not held in the application itself. Synchronization scripts stored in the consolidated database, together with the MobiLink server and the UltraLite runtime library, control how changes are processed when they are uploaded and determines which changes are to be downloaded.

The specifics of each synchronization are controlled by a set of synchronization parameters. These parameters are gathered into a structure, which is then supplied as an argument in a method call to synchronize. The outline of the method is the same in each development model.

The following procedure is generally used to add synchronization to your application:

  1. Initialize the structure that holds the synchronization parameters.

  2. Assign the parameter values for your application.

  3. Call the synchronization method, supplying the structure or object as argument.

    Ensure that there are no uncommitted changes when you synchronize.

 See also

Synchronization parameter initialization
Synchronization invocation
Committed changes and synchronization
Initial data for your application
Synchronization communications errors
Synchronization monitoring and canceling