Solved

Best way to join tables on different servers?

Posted on 2010-11-23
2
519 Views
Last Modified: 2012-05-10
hi what is the best way to join a table from on sql server to another.  Prefixing it with server and database is very slow.  I beleive open rowset is best way but is there any other and what is the syntax?
0
Comment
Question by:hendy1967
2 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
no other, from what I know...

and if it's slow, it will eventually depend on the join syntax you are doing...
there is no single magic solution to all situations.

you might consider:
* changing the query
* replicating the remote table(s) to the local db
* locate the query/job on the other database
* ...
0
 
LVL 6

Accepted Solution

by:
subhashpunia earned 500 total points
Comment Utility
Test after loading the remote server's table at local in temp tables and then use the temp tables in joins.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

771 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

10 Experts available now in Live!

Get 1:1 Help Now