Contents Index Script parameters Adding a script version

MobiLink Synchronization User's Guide
  Writing Synchronization Scripts

Script versions


Scripts are organized into groups called script versions. By specifying a particular version, MobiLink clients can select which set of synchronization scripts will be used to process the upload stream and prepare the download stream.

For information about how to add a script version to the consolidated database, see Adding a script version.

Application of script versions 

Script versions allow you to organize your scripts into sets, which are run under different circumstances. This ability provides flexibility and is especially useful in the following circumstances.

Assigning version names 

A script version name is a string. You specify this name when you add a script to the consolidated database. For example, if you add your scripts with the ml_add_connection_script and the ml_add_table_script stored procedures, the script version name is the first parameter. Alternatively, if you add your scripts using Sybase Central, you are prompted for the version name.

The default script version 

Whenever a remote site fails to supply a script version, the MobiLink synchronization server uses the first version defined in the ml_script_version table. If no script version has been defined, the synchronization fails.


Adding a script version

Contents Index Script parameters Adding a script version