Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Express database replication/synchronization

Situation: Hi, I'm coding using Lightswitch (C#) and am thinking of deploying to multiple sites the same application and database.

The databases need to be synchronized/replicated to each other so each would have a merged database. However connectivity between the sites is not going to be 100%, so the synchronization/replication would be done whenever the connection is possible.

Question:

Would it be possible to accomplish this through SQL Server Express? If not, what would be the best way to accomplish this by code? Thanks!

like image 911
Bryan Hong Avatar asked Feb 21 '26 04:02

Bryan Hong


2 Answers

SQL Server Express 2008 can be a subscriber but not a publisher, see details here:

Replication Considerations (SQL Server Express)

Microsoft SQL Server 2008 Express (SQL Server Express) can serve as a Subscriber for all types of replication, providing a convenient way to distribute data to client applications that use SQL Server Express. When using SQL Server Express in a replication topology, consider the following:

SQL Server Express cannot serve as a Publisher or Distributor.

like image 199
Davide Piras Avatar answered Feb 23 '26 16:02

Davide Piras


SQL Express doesn't support replication (except as a subscriber, as Davide pointed out). I think your best bet would probably be a windows service that keeps track of table names and the most recent timestamp processed.

Integration Services is also an option if you have a server to run it on.

Do you need data to be moving one-way or both ways?

like image 31
AlexCuse Avatar answered Feb 23 '26 18:02

AlexCuse



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!