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

  • Home
  • SEARCH
  • 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 8022137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:10:55+00:00 2026-06-04T22:10:55+00:00

I have two SQL Servers on which I am a sysadmin. One is a

  • 0

I have two SQL Servers on which I am a sysadmin. One is a 2008R2 server called LIGHT, as the box experiences very little activity. The other is a 2005 server called HEAVY, which sees a decent, constant amount of activity throughout the day. Both servers are in the same data center. I have created a linked server on LIGHT so that it can see HEAVY.

I’ve created a view on HEAVY to total up sales per location by day for the last few days that is more or less:

SELECT BusinessDate,
       Location,
       SUM(Sales)
FROM   Last7DaysOfSales
GROUP BY BusinessDate, Location

When I use SSMS to run this view on HEAVY, it runs in 30 seconds. When I run this same view from LIGHT via the linked server connection, it takes 17 minutes! I was hoping that using a view would mean the “heavy lifting” would be done on HEAVY, and the results of the view sent to LIGHT. Considering the ridiculous run time, it would seem that LIGHT is pulling all of the records over and doing the work itself?

What is the most efficient way I can deal with this problem? Is it even possible to have HEAVY handle the execution locally and pass the results to LIGHT? Or is my only option to create a nightly process on HEAVY to dump the results of this view into a table each night, then simply have LIGHT grab the data in the table?

Many thanks in advance.

  • 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-06-04T22:10:56+00:00Added an answer on June 4, 2026 at 10:10 pm

    I would suggest the use of OPENQUERY if you want to force the processing to be done on the remote machine. For example:

    SELECT *
    FROM   OPENQUERY(
            HEAVY,
            'SELECT BusinessDate,
                   Location,
                   SUM(Sales)
            FROM   MyDatabase.dbo.Last7DaysOfSales -- Note the dot notation
            GROUP BY BusinessDate, Location')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two servers on my network, one for RDBMS (Sql Server 2005) and
I have two servers where I installed SQL Server 2008 Production: RAID 1 on
You have two servers when you perform a SQL Server database mirroring You have
I have two VM servers (A&B) loaded with SQL server. I have connected to
I have two SQL Server 2008 databases called Anna and Bob . Bob has
I have two MS SQL 2005 servers, one for production and one for test
Using SQL Server 2005 I have two table which have the same datatype and
I currently have two joined tables in a SQL Server database, one with news
I have two identical servers with SQL Server 2005 and my application. Hard requirements:
I have one server out of three which cannot connect to our sql server

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.