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 7647577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:29:51+00:00 2026-05-31T10:29:51+00:00

I have two tables in two different SQL Server databases on different servers. Each

  • 0

I have two tables in two different SQL Server databases on different servers. Each table has the identical number of rows (each ~65000) and they are related by a common ID column. I created an object that has properties read and updated from these two tables.

I read all items from first table and create an instance of my object and then update properties of it. Then I add it into a List. After this is done I read from second table in order to update remaining properties of the object.

What can be the best way to do this? Do you have suggestions? At this moment I loop through my List and for each object in the list get data from the second server. Of course this is consuming time (~15 minutes).

For example is it possible to create a temporary table on one of the servers? The time I consume is in my loop. Time spent while retrieving data from these two servers are OK for me.

  • 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-31T10:29:52+00:00Added an answer on May 31, 2026 at 10:29 am

    A solution would be to create a linked server:

    http://msdn.microsoft.com/en-us/library/ms188279.aspx

    Using this method, you can reference a database from a different server as if it were on the same server. This should allow you to do a join to complete your dataset.

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

Sidebar

Related Questions

Using SQL Server 2008 (R2). I have two tables in different databases (with same
I have two tables from two different databases. For example: Table: Articles1 - Database:
I have a need to sync auto_increment fields between two tables in different databases
I have two databases at two different places, both databases are same with table
I've got a table recording views of programs. Each program can have two different
I have a page that displays a table in two different modes. In each
Hypothetically, in a SQL Server database, if I have a table with two int
I have two different databases that share some of the same tables, and differ
I have a table in Microsoft SQL server Management Studio with two columns title
I have same database schema on two different SQL servers 2008. I have one

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.