Home > Ask the SQL Server Experts > Denny Cherry - Performance Tuning Questions & Answers > Merge replication to keep SQL Server databases in sync
Ask The SQL Server Expert: Questions & Answers
EMAIL THIS

Merge replication to keep SQL Server databases in sync

Denny Cherry EXPERT RESPONSE FROM: Denny Cherry

Pose a Question
Other SQL Server Categories
Meet all SQL Server Experts
Become an Expert for this site


Expert advice on database administration
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 10 December 2007
I have a number of tool vending machines all connected to a SQL Server database to record stock levels and transactions. One of these vending machines is connecting to the SQL Server database through an ADSL link and is constantly experiencing loss of connection between it and the database.

What I've been thinking is to host a copy of the database on the vending machine using the ADSL link and then having the two databases do a two-way sync every couple of hours. My problem is due to my lack of knowledge and experience with SQL Server databases.

The idea of having a local database that syncs when scheduled is to minimize the WAN connectivity issues. What's the best way to proceed?


>
EXPERT RESPONSE
Based on the information you provided, it sounds like merge replication will be a good solution to help you resolve your issue.

When setting up the articles within the publication, I would recommend filtering any large tables to download only records which are used by this specific vending machine. This will help you reduce your network traffic to this vending machine. You can then schedule the merge to take place on a schedule, so changes are replicated between the two databases. If records are updated at each database, you'll need to be careful when setting up your conflict resolution so that you can keep an accurate inventory.

Check out this helpful tip:   
  • How merge replication works
    Find out exactly how merge replication works in this tip, the first in a three-part series by contributor Hilary Cotter.

  • Sound Off! -   Be the first to post a message to Sound Off!


    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Denny Cherry - Performance Tuning
    Upgrading to SQL Server 2008 advantages and hardware requirements
    Tool to synchronize two SQL Server databases
    SQL Server tools don't appear in menu after SQL Server 2005 install
    Use SQL Profiler to find long running stored procedures and commands
    How to retrieve SQL Server database disk space in use
    Troubleshoot SQL Server 2005 temporary table performance problems
    Performance tuning for SQL Server 2005 and Exchange running on SBS
    Maintain large SQL Server database and resolve website 'Timeout Error'
    Upgrade databases to SQL Server 2005 after server upgrade
    Upgrade to SQL Server 2005 or SQL Server 2008?

    SQL Server availability
    Upgrade live applications to SQL Server 2005 for high availability
    SQL Server high availability when upgrading to SQL Server 2005
    Tutorial: Migrating to SANs from local SQL Server disk storage
    How to restore SQL Server database to transition server during upgrade
    SQL Server memory configurations for procedure cache and buffer cache
    Upgrade Active/Active cluster to SQL Server 2005 and Windows 2003
    SQL Server backups using SAN database snapshots
    Tips for moving from SQL Server local disk storage to SANs
    How to process SQL Server 2005 Analysis Services for data availability
    SQL Server 2005 log shipping setup using the wizard
    SQL Server availability Research

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary



    Search and Browse the Expert Answer Center
    Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
    Browse our Expert Advice

    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2005 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts