I would like to disable and then rebuild a unique index inside a sync transaction. Can it be done?
I have multiple rows in a table that need to be changed but the values being updated violate a unique index. However, after all rows are changed, the constraint would be satisfied, so I want to disable this index until the end of the synchronization process.
In case anyone would be interested in a solution to a similar problem – one can take control over the transaction used during sync by attaching to some events of the sync provider: