Re: Is there a way to tell if two replicas need to be synced without starting the sync process

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



rdemyan@xxxxxxxxxxx wrote in
news:1166803499.900559.90650@xxxxxxxxxxxxxxxxxxxxxxxxxxx:

What if I link to the MSysRepInfo table in both the remote replica
and the server replica. Then when the syncing process is invoked
(either upon closing of the app or manually by the user), the code
will retrieve the s_Generation field value (is that the right
field?) from both linked tables and compare them. If the same,
don't sync. The point of doing this is why open the tables and
attempt a sync when it's not needed. As I understand it,
corruption rarely if ever occurs from simply reading table values,
which is what this little function would do.

Do you really understand enough about Jet to make this
determination?

Any time you read data in an MDB, on termination of the connection,
Jet writes a flag indicating whether or not the connection
terminated successfully. When that flag is not set, Jet assumes the
database is corrupted (even if it's actually not). When that happens
in a replicated MDB, even when it's only the flag that's wrong and
there's no actual data corruption, 9 times out of 10, the result of
compacting the database is that it loses replicability.

This can happen even with the most minimal read operation.

Face it: you don't really know enough about Jet to be making this
determination. What you assume to be OK and true is simply not.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
.



Relevant Pages

  • Re: Is there a way to tell if two replicas need to be synced without starting the sync process
    ... state where the possibility of corruption is higher. ... happened except the "this MDB was last closed properly" flag was not ... But if Jet ... With direct replication, sectors of the file have to be read off the ...
    (microsoft.public.access.replication)
  • Re: UNKNOWN REASON (-1017)
    ... replica before it lost replicability, however, to get anything you ... > laptop so I was spared manual data merging. ... > source of the corruption, my client could only tell me that he was ...
    (microsoft.public.access.replication)
  • Re: UNKNOWN REASON (-1017)
    ... > replica before it lost replicability, however, to get anything you ... >> source of the corruption, my client could only tell me that he was ... as possible after he reconnects to the network, and also so that his local ...
    (microsoft.public.access.replication)
  • Re: Question about potential for corruption when doing direct sync over a WAN
    ... As I understand it, the replica ... that if the link breaks or disconnects, that corruption can ... of database corruption on laptop based replicas. ... I have a sync button on the main menu. ...
    (microsoft.public.access.replication)
  • Re: Replication and VB
    ... > and writes directly to the database on the server. ... wouldn't work anyway, as linked tables are Access objects, not Jet, ... It would worry me, but if you can synch successfully via DAO, you're ... You can copy the replica to set up the laptop, but after that, you ...
    (microsoft.public.access.replication)