There are two scripts that can be used for processing each table during the download transaction. These are the download_cursor script, which performs inserts and updates, and the download_delete_cursor script, which performs deletes.
These scripts are either SELECT statements or calls to procedures that return result sets. The MobiLink server downloads the result set of the script to the remote database. The MobiLink client automatically inserts or updates rows based on the download_cursor script result set, and deletes rows based on the download_delete_cursor event.
For more information about using stored procedures, see Downloading a result set from a stored procedure call.
The MobiLink server downloads data in a single transaction. For a description of the download process, see Events during download.
By default, SendDownloadAck is set to OFF.
See SendDownloadACK (sa) extended option, Send Download Acknowledgement synchronization parameter, -nba option, nonblocking_download_ack connection event and publication_nonblocking_download_ack connection event.
WHERE Customer.last_modified >= {ml s.last_table_download} |
Do not synchronize shadow tables that were created by previous deployments (for example, tables ending with _mod or _del should not be synchronized). These tables are only needed by the consolidated database to track modified or deleted rows.
Writing download_cursor scripts
Writing download_delete_cursor scripts
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |