Timestamp-based example

This example implements file-based download for timestamp-based synchronization. It sets up the three databases and then demonstrates
how to download data by file. This example is presented in such a way that you can either just read through it, or you can
cut and paste the text to run the sample.

The following code sets the last download time so that all changes that occurred within the last five days are included in
download files. Any remote that has missed all the download files created in the last five days have to perform a normal synchronization
before being able to apply any more file-based downloads.

In this example, the remote database also contains one table, called T1. After connecting to the remote database, run the
following code to create table T1, a publication called P1, and a user called U1. The code also creates a subscription for
U1 to P1.

The following code defines an sp_hook_dbmlsync_validate_download_file stored procedure. This stored procedure prevents the
application of download files that do not have the string "ok" embedded in them.

To prepare your new remote database so that you can apply a download file, you need to either perform a normal synchronization
or create the download file with the dbmlsync -bg option. This example shows you how to use -bg.

The following code defines a script version called filebased_init for the consolidated database. This script version has a
single begin_publication script.