An Azure service designed to help simplify, guide, and automate database migrations to Azure.
Hello Mina Sabry Anis Metry,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having issue in DB Sync.
Yes, Azure SQL Data Sync has a hard limit of 500 tables per sync group, and I can attest that an attempts to bypass using of scripts will fail due to shared metadata enumeration. This is confirmed in Microsoft’s troubleshooting guide and best practices documentation. To avoid schema refresh failures and circular sync loops, it's essential to limit each sync user’s visibility to ≤500 tables using DENY permissions and create multiple sync groups accordingly. You can achieve with this workaround:
DENY SELECT ON [dbo].[Table601] TO [SyncUserA];
EXECUTE AS USER = 'SyncUserA';
SELECT COUNT(*) FROM sys.tables;
REVERT;
Additionally, please note that Azure SQL Data Sync will be retired on September 30, 2027, so it's advisable to begin transitioning to supported alternatives. Microsoft recommends Azure Data Factory (ADF) for large-scale, incremental sync using Change Data Capture (CDC), or SQL Server Integration Services (SSIS) for complex on-prem to cloud ETL scenarios. For real-time sync, Transactional Replication is a robust option, though it requires more setup and DBA expertise.
If you're experiencing schema refresh issues or sync loops, ensure that each sync group is isolated and that tables have primary keys. You may also consider creating a replica database with only the required tables to simplify sync configuration.
I hope this is helpful! Do not hesitate to let me know if you have any other questions or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.