Same database in two places

  • Hi,

    My boss asked how can we have one database in one place and the same database in other place people are making changes to this two databases, at the end of the day the two databases should be identical in terms od data.

    There is No internet or link (cable) between this two places.

    What would you do?

    P.S - I can send a person every day do go and pick files generated through this databases so that they import it...

    How wuold you do it?

    Thank you

  • I think we need more info...

    do these DB's need to be in sync all the time?

    can they be reconsiled at the end of the day?

    How large of a DB is this (in gigs)?

    just to be clear, there is no internet connection on either db server?

  • There is no internet.

    "can they be reconsiled at the end of the day" , Yes they can.

    500 MB of size

  • if the can be reconsiled at the end of the day..then you could compress the bak file and restore on the other server at the end of the day.

    this could be done automatically via scripts and possibly batch files.

  • krypto69 (6/27/2011)


    if the can be reconsiled at the end of the day..then you could compress the bak file and restore on the other server at the end of the day.

    this could be done automatically via scripts and possibly batch files.

    Not if data changes are being made in both locations.

    You might be able to do something with Merge Replication. I'm used to doing that with a connection established, but it might be possible by moving files around manually.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • Yes, they are made in both locations.

  • In that case i think i will do an app in .NET taht exports XML between the two databases...

  • Automate red-gate's sql diff maybe?? Is it even possible to script that out?

  • the problem you are going to have , no matter which method you choose, is that you will need a method of working out which change 'wins' when it comes to the same row of data being changed in both locations.

  • steveb. (6/27/2011)


    the problem you are going to have , no matter which method you choose, is that you will need a method of working out which change 'wins' when it comes to the same row of data being changed in both locations.

    and when to sync..

    can there be down time, aka maintenace mode..where the servers are unavailable?

  • yes. that is correct.

    But i think that even if i had replication the same thing would happen, correct?

  • can there be down time, aka maintenace mode..where the servers are unavailable?

    yes, if for a small amout of time

  • Merge replication allows you to setup the conflict rules to handle this situation.

Viewing 13 posts - 1 through 13 (of 13 total)

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