question

RagnaRock avatar image
RagnaRock asked

Whats the best way to replicate data without data loss between more than 2 databases

I'm testing possible solutions for database redundancy and high availability. My objective is to have various applications working simultaneous and communicating with one database only. But having the databases synchronized between them so that in case of one database goes down, all its data is not lost. ![Desired architecture][1] How can I do this in order that all databases are publishers/subscribers and for a commit to be done, must be done in all databases (a two-phase commit protocol between all databases "online")? [1]: http://i.stack.imgur.com/N8Jhb.gif
sql-server-2008replicationmerge-replication
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kev Riley avatar image Kev Riley ♦♦ commented ·
when you say communicating with one database only, do you mean each app/client connects to one of the three databases (as in the diagram) or all clients/apps connect to one database, and in the case of failure all failover to another?
0 Likes 0 ·
RagnaRock avatar image RagnaRock commented ·
an application can connect to any available database randomly
0 Likes 0 ·

1 Answer

·
Kev Riley avatar image
Kev Riley answered
You've tagged this question with SQL2008, but can you wait until SQL2012 is released? There's a feature called AlwaysOn, that will fit your requirements quite well : This combines the 2 technologies of mirroring (to give multiple copies of the data) and clustering (to give seamless failover). A good introduction can be found here :
3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kev Riley avatar image Kev Riley ♦♦ commented ·
Cheers Scot!
1 Like 1 ·
Scot Hauder avatar image Scot Hauder commented ·
+1 That should put you over 30K, great job Kev!
0 Likes 0 ·
WilliamD avatar image WilliamD commented ·
yes, well done @kev!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.