I'm a newbie so bare with me. If I have two servers running SQL Server, a primary and a secondary, how can I make sure that both databases (One on each server) are always syncronized? In our situation the secondary server is a hot backup in case the primary fails. If the primary fails then data gets written to the secondary. When the primary comes back up then its database needs to be synced with the secondary. Can anyone tell me how to do this?Have a look on books online about Transactional Replication...
This is a form of replication that will make your two server in sync.
Any changes that are made on one server are automatically replicated over to your other server.
http://www.databasejournal.com/features/mssql/article.php/1438201
http://www.sql-server-performance.com/transactional_replication.asp
Hope this helps mate|||Thanks for the links! Do you know if you are doing transactional replication, if the other server is down, will the server que the transactions and keep trying to send them until it succeees?|||no,
As far as I know it will publish on an all or nothing basis.
If your primary server goes down then replication will stop because it has no server to replicate to (i.e no subscribers)
This is the time you flip the primary to your hot spare and fix the original server. After you have sorted the problem on the original server just kick off replication again.
Cheers|||Why don't you create a 2 node cluster?|||Not using Enterprise. I don't think it is available on standard.|||You're right, Only on Enterprize.
No comments:
Post a Comment