6

I have an application that runs on server A and the database is on the same server
there is a backup server B which I use in case the server A is down

the application will remain unchanged but the data in the DB is changing constantly

Is there a way to synchronize those 2 databases real-time automatically?

currently I wait till all the users are gone so I can manually backup and restore in the backup server.

Edit: When I said real-time I didn't mean it literally, I can handle up to one hour delay but the faster sync the better.

  • My databases are located on 2 servers on the same local network.

  • 2 of them are SQL Server 2008, the main DB is on windows server 2008

  • the backup is on windows server 2003

  • A web application (intranet) is using the DB

  • I can use sql agent (if that can help)

I don't know what kind of details could be useful to solve this, kindly tell me what can help. Thanks.

Edit: I need to sync all the tables and table only.
the second database is writable not read-only

4

1 回答 1

5

我认为您想要的是Peer to Peer Transactional Replication

从链接:

对等复制通过跨多个服务器实例(也称为节点)维护数据副本来提供横向扩展和高可用性解决方案。建立在事务复制的基础上,对等复制以近乎实时的方式传播事务一致的更改。这使需要扩展读取操作的应用程序能够将来自客户端的读取分布到多个节点。由于数据在节点间以近乎实时的方式维护,点对点复制提供了数据冗余,从而提高了数据的可用性。

于 2013-05-11T13:26:01.407 回答