Home > Archive > SQL Anywhere Mobile > November 2005 > Re: how to get the records downloaded (update/insert) to a table in the remote(last_download_time?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: how to get the records downloaded (update/insert) to a table in the remote(last_download_time?
Shuchit

2005-11-02, 7:23 am

vsv <nospam@nospam.com> wrote in news:43681f50$1@foru
ms-1-dub:

> Requirement:
> I want to obtain the list of all records that are being downloaded
> (update/insert) into a table & process those records to populate other
> table in remote only.
>
> env: asa 9.0.2.2451 remote db
> ase 12.5.1 consolidated
>
> I am trying to accomplish this using the last download time.



I usually do not use the last download time to accomplish this. Remember that
timestamp is from a different system which could be in a different timezone,
or the clocks on the remote and consolidated might not be sync.

I would usually add an indicator column to the table. It should only be on
the remote.
You can either make it part of the publication (so that it will be
included in the download stream); or you can play with triggers that can
figure out they were fired due to dbmlsync and achieve the same effect.

On each download, set the indicator column to a specific value (say
'updated'). After the synchronization, you can just process every row that
has indicator value ='updated' and once you are done processing update the
indicator to 'processed'.

hth,
Shuchit
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com