I have already setup syncing with Microsoft Sync Framework, and now I need to add fields to a table. How do I re-provision the databases?
The setup is exceedingly simple:
- Two SQL Express 2008 servers
- The scope includes the entire database
- Using Microsoft Sync Framework 2.0
- Synchronizing by direct access. Using the standard new
SqlSyncProvider
Do I make the structural changes at both ends? Or do I only change one server and let Sync Framework somehow propagate the change?
Do I need to delete the _tracking
tables and/or the stored procedures? How about the triggers?
Has anyone been using the Sync Framework? Please help.
Actually, I posted my own answer on my blog http://myazurejourney.blogspot.com/
It has a few step, and it's definitely a hack. But it works.
check it out. tell me what you think
remove the scope and re-provision... use this code to remove a scope
You can use this script:
I've used Montago's solution, but converted it to SQL code which did the job for me. Be free to use it, I hope it helps you :)
This, as you can see goes through all the tables and try to find traces of syncing. You just need to change the database name (first line). Also, if you want to be safer with what you delete, use this code to find tables:
This will only look for tables that are actually being synchronized