Thank you for your patience, and I really appreciate you sharing the details with us. I’ve taken some time to analyze the error along with the Azure SQL Database setup, and I’d like to walk you through what we’re seeing.
What we’re observing
The failure is happening during the change enumeration phase on the table dbo.SDFoxFndDocumentPriceDetailStaging.
In simple terms, this is the stage where Data Sync tries to read and identify the changes that need to be synchronized. During this process, the underlying query is taking longer than expected and eventually hits a timeout (SQL error -2).
This indicates a performance-related bottleneck, rather than a configuration issue or a functional problem with Data Sync itself.
What could be contributing to this
Based on the behavior and the table involved, this is most likely related to one or more of the following:
- The table holds a large volume of data or is frequently updated
- Indexes may be missing or not optimal, making the query slower
- There could be blocking or concurrent activity affecting query execution
- A large backlog of change tracking data that needs to be processed
Initial checks we recommend
To better understand the situation, it would be helpful to review:
1. Table size
SQL
sp_spaceused 'dbo.SDFoxFndDocumentPriceDetailStaging'
2. Change tracking volume
SQL
SELECT COUNT(*)
FROM dbo.SDFoxFndDocumentPriceDetailStaging_tracking
Design observation
I also noticed that the database TPM_Reporting_Database is currently acting as both:
- a member database, and
- the sync metadata database
While this is technically possible, it is not considered a best practice. For better performance and isolation, we recommend hosting the sync metadata database in a separate, dedicated Azure SQL Database.
Summary
Overall, this looks like a performance constraint during the change detection step, particularly for the staging table mentioned above. Focusing on table size, indexing, and workload patterns should help us pinpoint the exact cause and improve reliability.
Please feel free to share the results from the checks above, and I’ll be more than happy to review them with you and suggest the next steps.
Thanks again for your collaboration on this—happy to continue working together on it