Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

select inner join between 2 linked server ?

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

  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?
thanks
ASKER CERTIFIED SOLUTION
Avatar of Brendt Hess
Brendt HessFlag of United States of America imageSenior DBA

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

Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers