Results 1 to 12 of 12

Thread: how to mirror the database

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2010
    Posts
    12

    Unhappy how to mirror the database

    How to mirror the database esp MS access? I have an database named Book.mdb stored in PC1. I want it to have a backup file, exactly the same content of Book.mdb, to PC2. Whenever PC1 will be down, it will directly save to PC2. Can you help me code this?

  2. #2

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: how to mirror the database

    The easiest way to "backup" an Access database is to simply copy it once it is no longer in use.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2010
    Posts
    12

    Re: how to mirror the database

    yes, i want to save my database in two different pc location. as i update my database, it will update both location.using an MS acces database and visual studio 2008. anyone who has a brilliant mind?

  6. #6

  7. #7
    Fanatic Member
    Join Date
    Jul 2006
    Location
    nasik,india
    Posts
    909

    Re: how to mirror the database

    I am not sure but you can try "Database Splitter" utility.
    WHETHER YOU SUCCEED OR FAIL IS NOT AS IMPORTANT AS WHETHER YOU TRIED YOUR BEST

  8. #8
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: how to mirror the database

    The only way to perform what you want using MS ACCESS (and not Database Splitter will not do this) is to create two connection string for the application 1 points to database at location 1 and the second points to the database at location 2. When you save, update or delete data you do it to both places. But and this is a big but, you will need to ensure that the save completes in both places to be able to commit the data. If you do not do this the databases will be come out of sync.
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  9. #9
    New Member
    Join Date
    Nov 2010
    Posts
    2

    Re: how to mirror the database

    Quote Originally Posted by rex_amidst View Post
    How to mirror the database esp MS access? I have an database named Book.mdb stored in PC1. I want it to have a backup file, exactly the same content of Book.mdb, to PC2. Whenever PC1 will be down, it will directly save to PC2. Can you help me code this?
    I was looking for the same solution as you. Finally I found a way to do it: Distributed File System (DFS)

    While you work on MDB file in PC1, DFS is doing a copy of the file in PC2. Whenever my PC1 is down I have a copy of the MDB on the PC2.

    What I would like to now from other people on the forum is if there are any inconvenients of using DFS for doing this with a MSAccess database file.

  10. #10

  11. #11
    New Member
    Join Date
    Nov 2010
    Posts
    2

    Re: how to mirror the database

    Quote Originally Posted by RhinoBull View Post
    There are whole lot of drawbacks (performance, ,concurrent file updates, no support for low level api, etc) with DFS:
    http://www.cse.chalmers.se/edu/year/...ilesystems.pdf
    http://www.microsoft.com/windowsserv...faq.mspx#EPBAC
    http://citeseerx.ist.psu.edu/viewdoc...=rep1&type=pdf

    ... but again those might not be applicable to every environment.
    I have the PC2 only for DFS purposes. All work in the Acces DB is done ONLY in PC1 (nerver PC1 and PC2 work at the same time on the Access DB).

    What DFS is doing is to replicate my MDB file from PC1 to PC2. So:
    - Acces Aplication runs on PC1
    - Users do changes on the Access db only in PC1.
    - PC1 and PC2 are running DFS and MBD file in PC1 is replicated on PC2
    - PC2 is only powered in order to run DFS, nothing else.

    If anything happens to PC1 and it must to be powered off, I can make PC2 available to my users for them to use the Access database. I can do this in about 10 minutes or so, and that is enough for me.

    Do you think I can break the database using this set up? Can all this be done in a more eficient maner? (change Acces for MSSQL is not an option as my aplication only support MSAccess.

  12. #12

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width