Solved

The multi-part identifier "myServer.crm.dbo.data.id" could not be bound.

Posted on 2008-10-12
3
616 Views
Last Modified: 2012-05-05
I get the following error when running a query between 2 linked servers.

The multi-part identifier "Server2.crm.dbo.data.id" could not be bound.



update data set valid = [Server2].[crm].[dbo].[data].[valid]
from  [Server2].[crm].[dbo].[data]
where data.ID =[Server2].[crm].[dbo].[data].[id]

Any ideas ?

thanks
0
Comment
Question by:JElster
[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
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 22698942
this should work better:
update data 
  set valid = r.[valid]
from  data 
join[Server2].[crm].[dbo].[data] r
 on  data.ID = r.[id]

Open in new window

0
 
LVL 1

Author Comment

by:JElster
ID: 22698978
Thanks.. but why doesn't my original work?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 22698985
because it does not conform to the syntax requirements... that's all...
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

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…
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

623 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