How can I synchronize MS SQL Server databases? Is there any tool, preferably open source?
feedback
|
|
Have you looked at the built in mirroring functions? Technet has a brief description here. The primary server sends its transaction log records to a secondary server, which then replays the transaction log. Mirroring can be set up synchronously or asynchronously. | |||
|
feedback
|
|
If I understand you right you want to have a copy of the database from the web server on your local machine. The changes in the database on the web server should be periodically copied to your local server. I believe you can do that with replication but you need at least a Workgroup edition of SQL server on your web server. If your database is not large or doesn't change frequently you can use Snapshot replication. SQL Server will periodically take snapshot of the database and replicate it to your local server. For bigger or frequently changed databases I would suggest you to use merge replication. It is less time and resource-intensive. You can get more information about replication in Books Online. Take a look also at Data Movement Patterns. | |||||
feedback
|
|
As others have said, there are lots of built-in ways in SQL Server 2008 to make two servers synchronize, real-time or on a schedule. Some points you should take into account:
Depending on the answers, you can choose the method most suited for your needs; other than the ones which were already described (replication and mirroring), remember you can also do some other things:
| ||||
|
feedback
|
|
http://danmacs.posterous.com/configuration-of-database-mirroring-for-non-d is a link to my blog describing how to set up database mirroring for non-domain servers. That does not however allow you to have both SQL Servers active at the same time, to do that you would need to do some form of replication. Depending on how the data is accessed, if it's all read then it's not too bad, if it's read on one server and read/write on the other, again not too bad, if it's write/write then you are going to be in for some "interesting" times. | |||
|
feedback
|