We help IT Professionals succeed at work.
Get Started

Inner join across an instance

LouisvilleGeek
on
321 Views
Last Modified: 2012-08-14
I am currently trying to inner join between two databases.  One of them is a true database, and the other is an instance.  While I can pull records from one without a hitch (they have been linked), when I try to perform the join, I'm told that it cannot find the column in question.  Here's the statement I've been trying:

SELECT equipmentId
FROM [CHSQL01\ABOUTTIME].[abtt].[dbo].[Equipment]
INNER JOIN VPTest.dbo.bEMEM
ON [CHSQL01\ABOUTTIME].[abtt].[dbo].[Equipment].[equipmentCode] = VPTest.dbo.bEMEM.Equipment

Open in new window

And this is the error, I'm receiving:
Msg 4104, Level 16, State 1, Line 4
The multi-part identifier "CHSQL01\ABOUTTIME.abtt.dbo.Equipment.equipmentCode" could not be bound.

Open in new window

Any help is greatly appreciated.  Thanks in advance!
Comment
Watch Question
Sr. System Analyst
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
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
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