Temporarily stops logging of deletes for MobiLink synchronization.
STOP SYNCHRONIZATION DELETE
Ordinarily, SQL Anywhere and UltraLite remote databases automatically log any changes made to tables or columns that are being synchronized, and then upload these changes to the consolidated database during the next synchronization. This statement allows you to temporarily suspend logging of delete operations to a SQL Anywhere or UltraLite remote database.
None of the delete operations executed on a connection between the time the connection executes STOP SYNCHRONIZATION DELETE and the time the connection executes START SYNCHRONIZATION DELETE are synchronized.
A single START SYNCHRONIZATION DELETE statement restarts the logging, regardless of the number of STOP SYNCHRONIZATION DELETE statements preceding it.
This statement can be useful to make corrections to a remote database, but should be used with caution as it effectively disables MobiLink synchronization.
Do not use STOP SYNCHRONIZATION DELETE if your application does not synchronize data.
You must have the SYS_REPLICATION_ADMIN_ROLE system role.
None.
Not in the standard.
The following sequence of SQL statements illustrates how to use START SYNCHRONIZATION DELETE and STOP SYNCHRONIZATION DELETE:
-- Prevent deletes from being sent -- to the consolidated database STOP SYNCHRONIZATION DELETE; -- Remove all records older than 1 month -- from the remote database, -- NOT the consolidated database DELETE FROM PROPOSAL WHERE last_modified < months( CURRENT TIMESTAMP, -1 ) -- Re-enable all deletes to be sent -- to the consolidated database -- DO NOT FORGET to start this START SYNCHRONIZATION DELETE; -- Commit the entire operation, -- otherwise rollback everything -- including the stopping of the deletes commit;