Some advice need for replication

  • I want something like this....

    1. Live DB working busy on processing incoming data

    2. Replication DB which replicate data from Live DB

    3. Replication DB need to process data and then pass back to Live DB so that both have the same data

    So how i can do it... Please help and need it urgently..

    thanks

    jason

  • Go for merge replication.

    Only thing you need to check for application as it will add one extra unique row so that it can sync both live and replicated DB.

  • Or peer-to-peer


    * Noel

  • perhaps immediately updating subscribers or queued updating

    http://msdn.microsoft.com/en-us/library/ms151718(SQL.90).aspx

    ---------------------------------------------------------------------

  • The problem with setting up replication is that it often requires you to make changes to your database design. Transactional replication requires a primary key on all tables. Also peer-to-peer replication is only in the Enterprise Edition available. I woudn't use transactional replication with updating subscribers if you plan to make updates on a regular basis at the subscriber database.

    Merge replication on the other hand will add a rowguid column and triggers to the tables. You have to check if that will break your application. Compared to peer-to-peer replication it has the advantage of automatic conflict resolution.

    P2P has conflict detection in SQL 2008, but by default after a conflict is detected the agent will stop synchronizing.

    See also this article:

    http://www.sqlservercentral.com/redirect/articles/66970/

    [font="Verdana"]Markus Bohse[/font]

  • So what method you suggested ?? and is the best for my situation

  • jason (5/19/2009)


    So what method you suggested ?? and is the best for my situation

    My first thought would be merge replication, but to be honest you didn't provide a lot of detail and I won't know if your application can handle the extra column or not.

    Can you make changes to the application or is it a thrid-party product which you can't change.

    I suggest you read some more articles about replication and see what fits best for your situationm before making the final decision.

    [font="Verdana"]Markus Bohse[/font]

  • Ok let me give some more detail and hope you guys can give me a good suggestion....

    Live DB A => accept data from Web , handphone and pda

    Live DB B => replicate Live DB A and process some data inside some of the table and then it need to replicate back to Live DB A

    At the mean time, data inside Live DB A may be will be updated or deleted while the data is being process in Live DB B..

    So do you think of the solution that suitable for this situation....

    thanks in advance for the reply....

  • At the mean time, data inside Live DB A may be will be updated or deleted while the data is being process in Live DB B..

    The changes will be reflected depending on who is the conflict owner.

    From your scenario DB B will process the data and replicate it to the DB A meantime if the same data in the same row have been modified then there will be a conflict and the depending on the conflict resolver type which you had setup during the replication will be the owner.

    I think first you go through some links and read on replication types and How to resolve conflict.

    For more information on merge replication & How it resolve conflict please read the below links.

    http://technet.microsoft.com/en-us/library/ms151215.aspx

    http://technet.microsoft.com/en-us/library/ms151257.aspx

    "More Green More Oxygen !! Plant a tree today"

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply