Q: About Replication.

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Sky (forums_at_xact-solutions.com)
Date: 03/04/04


Date: Thu, 4 Mar 2004 15:02:54 +0100

Hi -- wish to know the simplest theory about replicating databases. I know
that SqlServer has a built in mechanism in it to do this (although never
used it) but i am looking to make a cross DBMS SQL based solution.

In essense if you have a Contacts table on the server, and you want to synch
this with 10 pocketPC's so that Users can update them in the field, how do
you design the tables?

If I use AutoIncrement columns for the index, then I believe that I will run
into trouble because the server, and each client will be auto-incrementing
at different speeds, and then to synch them back will overwrite records, and
possible gaps.

What I have come up with, but would like verification on is:
What about using a uniqueidentifier for the Key, and a DateEdited:

First Select * from SERVER.Contacts where DateEdited since
[LastTimeSynched]" and write those changes to the PDA, then reverse and
Select * from PDA.Contacts where DateEdited > [LastTimeSynched] where
Contacts.ID NOT in where NOT IN (Select GUID from SERVER.Contacts Where
DateEdited since [LastTimeSynched]...

(BTW: the exact sql for the second line is beyond me -- anyone care to
correct it so that its basically cross DBMS portable?)

Anyway -- that's what I came up with. Just feels a bit wierd and I wanted
some confirmation that this sounds like a good way to do it... Anybody have
any experience/tips?
Thanks!



Relevant Pages

  • Re: Windows Time Service
    ... is your PDC not connected to the internet? ... server through your firewall and configure the service to synch with it ... some routes can act as an NTP time source and you can configure your ... Configure your system to synch with that NTP server (the articles you ...
    (microsoft.public.windows.server.setup)
  • Re: Homegrown synchronization
    ... to check for update files in the Import DropBox for the server. ... similar to the import code used to update a remote backend). ... code to close the "sync" app. ... synch app, but only one at a time would be able to do synchs. ...
    (microsoft.public.access.replication)
  • Re: Replman - Managing multiple sets of application databases
    ... The laptop should be ... replica on the server. ... It's much easier to share one hub replica ... would add unnecessary risk of conflicts) should use a direct synch, ...
    (microsoft.public.access.replication)
  • Re: Synchornize date script
    ... I believe that once the clients are configured to synch with your server, ... the script works just fine. ... the recommended approach is to configure PC's to synchronize ...
    (microsoft.public.scripting.vbscript)
  • RE: Offline Files keep looking for old server path
    ... "settings" button offered to me on the failed synch dialog box. ... Many thanks, Mike ... > offline file that I have saved. ... They all point to the new server. ...
    (microsoft.public.windowsxp.work_remotely)