Generating for MobiLink

You can generate MobiLink scripts (*.sql) for the replication process, and/or for the consolidated and remote databases.

One SQL file is generated per server and contains all the orders for the server. The SQL file cannot be executed using a live database connection. You need to use the isql command to execute this SQL file. You can preview the script that will be generated for each object on the Preview tab of its property sheet.
Note:

In order for you to connect properly to the replication process you must verify that:


  • The code of the replication process object corresponds to the instance name of the MobiLink server.

  • The User name and Password extended attributes correspond to the MobiLink server login user name and password.

  • Each database has been generated using one of the Generate commands from its contextual menu.

isql.exe -e -U USRNAME -P PWD -S SVR_TEST -i SVR_TEST.sql
  1. Select Tools > MobiLink version > Generate Scripts to open the Generation dialog. You can, alternately, right-click any database or replication process in the synchronization environment and select Generate Scripts to open the Generation dialog and generate a script for that element only.
  2. Specify a directory in which to generate the scripts.
  3. [optional] Select the Check Model option to verify the validity of your model before generation.
  4. On the Selection tab, select the objects that you want to include in the generation. Use the sub-tabs to navigate between separate lists of object types. The selections you make here will affect the files that are available to select on the Generated Files tab.
  5. On the Options tab, set generation options as appropriate. The following options are available:
    Option Description
    Drop publication/subscription before creation Specifies to include drop statements to remove a publication and all of its articles or a subscription to a publication from the system tables before recreating it.
    Delete old synchronization scripts Specifies to delete all the previously specified synchronization scripts versions from the MobiLink system tables.
  6. Click OK to generate the scripts in the specified directory.

    When the generation is complete, the Generated Files dialog opens listing the scripts, each of which you can open and review by selecting it and clicking Edit.

    The MobiLink file is generated in the destination directory.