locked
Persisting the Anchor RRS feed

  • Question

  • After exiting the client application do we need to save the last anchor and restore this value when the EXE is launched again.  How does the first sync of the EXE know when the local SDF file was synced last? and is this per table or syncgroup?

     

    (n-Tier w/SP under vs2005 - SyncAdapter Directly - No builder)

     

    Thanks ,

    Mike

     

     

    • Moved by Max Wang_1983 Friday, April 22, 2011 10:47 PM forum consolidation (From:SyncFx - Microsoft Sync Framework Database Providers [ReadOnly])
    Thursday, May 17, 2007 8:48 PM

Answers

  • Hi Mike,

     

    The runtime does that for you. After it download\upload changes, it calls into the client provider to save the anchor. The persisted anchor is then used in the next sync and so on. Anchors are stored per table. This means you can take a table off the group or add new table to the group without any issues assuming there is no PK-FK relations that might result in constraint violations later on.

     

    Thanks

    Thursday, May 17, 2007 9:21 PM

All replies

  • Hi Mike,

     

    The runtime does that for you. After it download\upload changes, it calls into the client provider to save the anchor. The persisted anchor is then used in the next sync and so on. Anchors are stored per table. This means you can take a table off the group or add new table to the group without any issues assuming there is no PK-FK relations that might result in constraint violations later on.

     

    Thanks

    Thursday, May 17, 2007 9:21 PM
  • Great thanks!
    Thursday, May 17, 2007 9:36 PM