troubleshooting Question

select inner join between 2 linked server ?

Avatar of Dominic34
Dominic34Flag for Canada asked on
Microsoft SQL Server 2008Microsoft SQL Server 2005
2 Comments1 Solution599 ViewsLast Modified:

  Ok, here is a tricky one.

I have 2 linked server configured properly. I can execute select statement on both servers from Management Studio. So far so good.

But, for wathever reasons, the designers of the other system (which is a Pervasive DB) decided to split the tables between 2 distincts databases (the reason why I have 2 linked servers on 2 ODBC DSN). And I have to extract data on tables that are on both databases.

So I have those queries:
select * from openquery(ExactSQL, 'SELECT "Id Product" FROM Product where number=''PP141-72''')
select * from openquery(ExactGPAO, 'SELECT * FROM ProductRecipe where "Id Product" = 3532') => 3532 is the Id Product of PP141-72

Is there a way I can do a join between those tables?
Brendt Hess
Senior DBA

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros