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

SQL Anywhere 10.0.1 » MobiLink - Client Administration » MobiLink SQL Anywhere Client Extended Options

Increment (inc) extended option Next Page

LockTables (lt) extended option


Specifies that tables in the publications being synchronized should be locked before synchronizing.

Syntax

lt={ ON | OFF | SHARE | EXCLUSIVE }; ...

Remarks

SHARE means that dbmlsync locks all synchronization tables in shared mode. EXCLUSIVE means that dbmlsync locks all synchronization tables in exclusive mode. For all platforms except Windows CE, ON is the same as SHARE. For Windows CE devices, ON is the same as EXCLUSIVE. The default is ON.

Set to OFF to allow modifications during synchronization. When OFF is used, dbmlsync uses a different mechanism to ensure that the download does not overwrite rows with changes waiting to be uploaded.

For more information about shared and exclusive locks, see How locking works and LOCK TABLE statement.

For more information about locking tables in MobiLink applications, see Concurrency during synchronization.

When synchronization tables are locked in exclusive mode (the default for Windows CE devices), no other connections can access the tables, and so dbmlsync stored procedures that execute on a separate connection will not be able to execute if they require access to any of the synchronization tables.

For information about hooks that execute on separate connections, see Event Hooks for SQL Anywhere Clients.

This option has a short form and long form: you can use lt or LockTables.

You can also store extended options in the database. For more information about dbmlsync extended options, see Introduction to dbmlsync extended options.

Example

The following dbmlsync command line illustrates how you can set this option when you start dbmlsync:

dbmlsync -e "lt=on"

The following SQL statement illustrates how you can store this option in the database:

CREATE SYNCHRONIZATION SUBSCRIPTION
   TO sales_publication
   FOR ml_user1
   OPTION lt='on';