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

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

Pergunta

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........

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top