Replication into cache and committed with 1 transaction; is this possible?

Posted on 2014-08-26
Last Modified: 2014-09-18
I’m using Sql Server2008R2.  I’m replicating two databases over VPN from one server to another (2008R2).  I'm using push replication where the publisher is also the distributor.  Transactional replication is implemented on a set schedule, and that's because ETL packages run and pull tables beforehand (to be replicated after) from many locations.  These ETL packages truncate old tables and recreate them (updated) on every run.  (Hence, we have to run replication on a set schedule or empty tables may get replicated.)  Furthermore, I am wondering whether our replication can be done to first cache replicated changes on the subscriber side and then commit everything at once (at subscriber.)  Sometimes replication drags out due to poor VPN or internet bandwidth or whatever else, and I’d like to be able to control process interlocks to some extent.  

There are sql jobs and other things after replication comes through on the subscriber side, and interlocking is a problem when we push replication to the limit (to be as frequent as possible.)
Question by:menreeq
    LVL 35

    Expert Comment

    by:David Todd

    You haven't said whether you are running transaction replication or snapshot replication. If you are completely rebuilding tables then snapshot replication may be more efficient.

    Maybe try staggering the replications. ie break the publication(s) into smaller units,

    Otherwise look at improving the pipe between here and there. Only real thing for it.


    Author Comment

    Hi David,
    Transactional replication is implemented on a set schedule.

    Currently I replicate a whole database of 10 tables or so per publication. When you mention staggering above, do you suggest to perhaps do one or two tables per publication?  This way I'm still dependent on publisher's VPN and internet connectivity, I'm trying to avoid it and I am afraid improving the pipe is beyond my control, since its client's bandwidth that I have no control over.
    LVL 35

    Accepted Solution


    Fairly easy really. If client is concerned about this issue, show the volume of data that is currently going down the pipe and point out that your timeouts require a fatter pipe to carry x data in y time. If client listens and improves pipe then you have succeeded. If client doesn't listen put it in writing and ignore the issue until client listens.

    What is the business reason for the replication? What problem are you trying to solve?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    I have written a PowerShell script to "walk" the security structure of each SQL instance to find:         Each Login (Windows or SQL)             * Its Server Roles             * Every database to which the login is mapped             * The associated "Database User" for this …
    Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now