Hi,
This kind of usage is not a supported scenario from SyncFx. If you want to use this stored procedure just for fetching incremental changes, you can provision a SQL Server database with the database provider management APIs and use SQL Server Profiler
to find out how this SP is used.
In database provider end-to-end sync scenario, the value of @sync_min_timestamp comes from remote sync endpoint. It represents what the remote sync endpoint knowledge of the local sync endpoint based on their previous sync. It means that you should record
min_active_rowversion() in some place when you call this SP last time, and use the recorded value as @sync_min_timestamp when calling this SP again.
You need to make sure that the value is recorded at the right time and in the right transaction to avoid re-enumeration or missing changes
Thanks,
Dong
This posting is provided AS IS with no warranties, and confers no rights.