September 19, 2008 at 10:41 pm
I want to develop a redundant system.For achieving this I have two machines(SYS1 and SYS2) each having SQL Server 2008 database,and my application running over it.This application connects to the SQL Server instance present on that machine.At a given point of time only one of the system is active and other passive.Both the database are true copy of each other.
In the active machine(SYS1) database transactions are made.I want these transactions to be replicated on the passive server(SYS2) whenever it is available.Similarly whenever the active server becomes passive(SYS1) and the passive becomes active(SYS2) the transaction done on SYS2 be replicated on SYS1 in real-time.
Will Transaction-Replication be a suitable method to achieve this?I want to achive this by using CODE or T-SQL as the databases and tables are dynamically created .
September 20, 2008 at 2:25 am
Have a look at database mirroring. It looks, from your requirements, that it would be a closer fit than replication
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
September 20, 2008 at 2:51 am
Thanks..i had read about database mirroring but was quiet confused between mirroring and replication.Your confirmation to implement database mirroring will help me ... i will give it a try
September 20, 2008 at 7:03 am
Mirroring is more an 'automated' logshipping than it is similar to replication.
Replication (transactional) will give you a second server that's fully usable (read and write) that is slightly behind the publisher. There's no easy way to reverse the direction of the replication. It requires manual work to drop the existing publication and subscription and recreate in the opposite direction.
Mirroring gets you a secondary database that's inaccessible but is up to date (synchronous mirroring) or nearly up to date (asynchronous mirroring) with the primary. Changing which is active is very easy, it's a single command.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply