Skip to content

SqlSyncChangeTrackingProvider with single server and many clients #1362

@slawomirpiotrowski

Description

@slawomirpiotrowski

Hello,

I'm using SqlSyncChangeTrackingProvider with many clients synchronising with a single server.

It is possible to add new clients during lifetime of the application.

If incremental synchronisation fails for whatever reason, including change of metadata of synchronised data (like adding new column or something) than I'm doing Deprovision + drop destination tables from destination (client) database + Reprovision + full synchronisation.

What is the problem? DotMim.Sync during Deprovision executes ALTER TABLE ... DISABLE CHANGE_TRAKCING, and this operation damages synchronisation with other clients.

So if metadata change for any of synchronised clients, than I need to execute operation that break synchronisations with other clients.

Can I skip this operation by configuration somehow? I have tried to pass some parameter to DeprovisionAsync (SyncProvision) to let it know that it shouldn't delete change tracking informations, but failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions