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

SQL Anywhere 12.0.1 » MobiLink - Server Administration » MobiLink events » Synchronization script writing

 

Adding and deleting scripts

When you use the Create Synchronization Model Wizard, scripts are automatically added to the consolidated database when you deploy the model.

When you create synchronization scripts outside Sybase Central, you must add them to MobiLink system tables in the consolidated database. For SQL scripts, the entire script is saved in the MobiLink system table. For Java or .NET scripts, the method name is registered in the system table. The method for storing scripts and method names is similar.

See MobiLink server system tables.

If you are using Sybase Central, you must add a script version to the database before you can add individual scripts. See Adding a script version.

 Add a connection script (Sybase Central)
  1. From the View menu, click Folders.

  2. In the left pane of Sybase Central, expand your MobiLink project name, then expand the consolidated database you want to work with. You are connected to the consolidated database based on the connection information that was provided when you added the consolidated database to your project.

  3. Right-click Connection Scripts and click New » Connection Script.

  4. Follow the instructions in the Create Connection Script Wizard.

 Delete a connection script (Sybase Central)
  1. From the View menu, click Folders.

  2. In the left pane of Sybase Central, expand your MobiLink project name, then expand the consolidated database you want to work with. You are connected to the consolidated database based on the connection information that was provided when you added the consolidated database to your project.

  3. Expand Connection Scripts.

  4. Right-click a connection script and click Delete.

  5. Click Yes.

 Add a table script (Sybase Central)
  1. From the View menu, click Folders.

  2. In the left pane of Sybase Central, expand your MobiLink project name, then expand the consolidated database you want to work with. You are connected to the consolidated database based on the connection information that was provided when you added the consolidated database to your project.

  3. Expand Synchronized Tables.

  4. Right-click the table and click New » Table Script.

  5. Follow the instructions in the Create Table Script Wizard.

 Delete a table script (Sybase Central)
  1. From the View menu, click Folders.

  2. In the left pane of Sybase Central, expand your MobiLink project name, then expand the consolidated database you want to work with. You are connected to the consolidated database based on the connection information that was provided when you added the consolidated database to your project.

  3. Expand Synchronized Tables.

  4. Expand the table.

  5. Right-click the table script and click Delete.

  6. Click Yes.

 Add or delete all types of scripts (system procedures)

Direct inserts of scripts
Ignored scripts