Is it normal on each sync to run CREATE PROCEDURE [dbo].[XXX_changes] ?
See original GitHub issueI’m in the process of replacing the native SQL server replication with Dotmim.Sync. There are two SQL servers using SqlSyncChangeTrackingProvider on both client and server.
I’ve set-up a service that executes the SyncAgent.SynchronizeAsync every minute for 14 tables. I’ve noticed that on every sync, even when there are 0 changes, the following SQL commands are executed on the client:

It seems odd to me that commands like CREATE PROCEDURE [dbo].[XXX_changes] are executed on each and every sync, every minute.
Is this normal? Also perhaps because of the large amount of SQL queries, each sync (even with 0 changes) takes about 2.5 seconds, which seems slow to me.
Thank you for this wonderful library!
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Syncing multiple stored procedures between instances
Current sync situation: We currently have 29 different stored procedures in the sync. The main sync uses them all which is to be...
Read more >SQL Server - create stored procedure that runs several ...
Can I create one stored procedure that will run all of them, sequentially? Keep in mind that some of the middle ones in...
Read more >Execute stored procedure sequentially
SQL already runs top down already, so I'm not sure what your point is here. If you have 3 SP's, each one will...
Read more >Can I launch a stored procedure and immediately return ...
Not a bad idea, however in my case the stored procedure gets called from multiple places, so finding all those places and ensuring...
Read more >CREATE PROCEDURE (Transact-SQL) - SQL Server
Creates a Transact-SQL or common language runtime (CLR) stored procedure in SQL Server, Azure SQL Database, and Analytics Platform System ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Dumbfounded! I guess I should read comments… Thank you for your time!
By the way, look carefully the first comment …