Solved

Best way to join tables on different servers?

Posted on 2010-11-23
2
523 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34195294
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
ID: 34195337
Test after loading the remote server's table at local in temp tables and then use the temp tables in joins.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

740 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