Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7627919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:31:31+00:00 2026-05-31T05:31:31+00:00

We have 3 SQL Servers (A, B and C). Server A has linked server

  • 0

We have 3 SQL Servers (A, B and C). Server A has linked server connections to B and C. We have a number of Views on A that join data from B and C. No surprise that these views are horribly slow, taking hours to query. We are talking 1000s of records in a number of tables in B and C.

Our idea is to move data from B and C into local tables on A and then point the views to the local tables. We came up with a number of options for data transfer:

  1. Each night, replicate data from B and C to A, moving only the deltas across to the tables on A (rather than the whole dataset)
  2. Each night, restore the B and C databases to local databases on A and point all views to the local databases
  3. Write a custom stored procedure on A that, each night, DROPs local tables and fills them with data from B and C using SELECT * INTO. Point all views on A to the local tables.
  4. Similar to option 3, write a custom stored procedure on A that, each night, calculates the deltas between the local tables on A and the equivalent tables on B and C. Point all views on A to the local tables.

We did not want to go with option 1 because (according to our senior DBA) the replication would modify the tables on B and C (e.g. adding columns called msrepl_tran_version). The systems on B and C are 3rd party applications that we can’t modify.

We did not want to go with option 2 because we don’t want to have EVERY table from B and C. We only want a subset of the tables. These databases are huge and restoring them would take up way too much space.

We are currently exploring option 3. However, it doesn’t sit well with me because, every night, we are moving a large amount of data and 90-something percent of the data we bring across from B and C is the same as the previous night.

The senior DBA suggested option 4 as the only other way besides option 1 to move deltas across each night. However, this seems like a lot of work. Surely this is a common problem and can be solved without writing custom code?

Does anyone have any other suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:31:32+00:00Added an answer on May 31, 2026 at 5:31 am

    You will never be able to detects the deltas correctly. Do not reinvent the wheel, the problem you describe has a simple straight forward solution:

    • have both B and C set up transactional replication
    • on both B and C add the table(s) of interest as a published articles
    • have A subscribe to B and C and receive the updates in near real time

    Transactional replication does not modify the tables in any fashion. The replication agent only mines the log for changes and transforms them into updates that are staged into distribution db and then applied to subscribers. No changes occur to any of them 3rd party application, the table schema is not modified. You may have been misled into thinking replication does not work because you only considered merge replication, which is not appropriate for your problem description (and, unlike transactional replication, does indeed require structural changes to the published articles).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SQL server instance that has a Linked server to an Oracle
I have a SQL Server DB that has a table of products, and another
We have a SQL 2000 server that has widely varied jobs that run at
I have a SQL Server 2005 database that has been deleted, and I need
I have an SQL Server 2005 table that has a varchar(250) field which contains
I have a table in SQL server that has the normal tree structure of
I have a SQL Server table in production that has millions of rows, and
I have added an linked server from an SQL 2000 server to an SQL
I have SQL server and It has another SQL server Linked server [DEV]. Now
I have an SQL reporting server report which has 5 parameters which permit nullable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.