Skip to content

Deletes with SQL Server change tracking in a multi sync infrastructure #935

Answered by Mimetis
maprado-inetum asked this question in Q&A
Discussion options

You must be logged in to vote

To understand correctly, you need to know how changes are tracked.
Basically, the tracking tables have a 1-1 relation with the main table, using the table Primary Keys.
SQL Server Change Tracking works the same (at least this is how we are using it in DMS)
Tracking the rows changed, and returning the primary keys.

The main problem with Deletes (when you have filters) is that the only thing you have to retrieve the deletes rows is the rows in the tracking tables, identified by the primary keys (and sync_row_is_tombstone = 1)

When rows are deleted, you just can't apply filters (as the rows are deleted :D)

That means that you can't apply filters when you are retrieving the deleted rows, as t…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by maprado-inetum
Comment options

You must be logged in to vote
1 reply
@Mimetis
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants