How to Synchronize two tables on different sql servers by using Microsoft Sync Framework Programatically? [closed]

StackOverflow https://stackoverflow.com/questions/23169476

Domanda

I Have two Databases, One is on Local Server and another is on Web Server. Now i wnat to Synchronize these Databases. I want to Use Microsoft Sync Framework for it. I found a Tutorial Here:-

http://social.technet.microsoft.com/wiki/contents/articles/2190.tutorial-synchronizing-sql-server-and-sql-server-compact-sync-framework.aspx

I Followed Steps But when i use DbSyncScopeDescription in my Main Method i got this Error:-

          The type or namespace name 'DbSyncTableDescription' could not be found (are you missing a using directive or an assembly reference?) 

Can Anybody tell me Exact Procedure of doing Synchronizing sql server database or any working example?

Please Help me.

Thanks in Advancce........

È stato utile?

Soluzione

You might not have added reference to your project. You need to add

Microsoft.Synchronization.Data.dll
Microsoft.Synchronization.Data.Server.dll
Microsoft.Synchronization.Data.SqlServer.dll

These assemblies to your project

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top