Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Update: multi-part identifier could not be bound
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gnaus
Starting Member

Netherlands
41 Posts

Posted - 08/16/2012 :  10:05:35  Show Profile  Reply with Quote
dear reader,

this is my formula
and the error

can anybody help me?
I mentioned the server en databasename en put it between [] buth nothing helps

thank you!

Update dbo.[Abrona Productie$SoCM Client]

Set [Birth Place] = GnGeboorteplaatsenOver.GeboorteplaatsPCD

Where dbo.[Abrona Productie$SoCM Client].Code in (select Code From GnGeboorteplaatsenOver)
and
dbo.[Abrona Productie$SoCM Client]. [Birth Place]=''


Error:
Msg 4104, Level 16, State 1, Line 1
The multi-part identifier "GnGeboorteplaatsenOver.GeboorteplaatsPCD" could not be bound.


GN

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3383 Posts

Posted - 08/16/2012 :  11:15:18  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
Update dbo.[Abrona Productie$SoCM Client]

Set [Birth Place] = GnGeboorteplaatsenOver.GeboorteplaatsPCD
from dbo.[Abrona Productie$SoCM Client]
join GnGeboorteplaatsenOver
on dbo.[Abrona Productie$SoCM Client].Code = GnGeboorteplaatsenOver.Code
and dbo.[Abrona Productie$SoCM Client]. [Birth Place]=''


==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 08/16/2012 :  15:02:52  Show Profile  Reply with Quote
learn using alaises rather than repeating long table names everywhere


Update a
Set a.[Birth Place] = g.GeboorteplaatsPCD
from dbo.[Abrona Productie$SoCM Client] a
join GnGeboorteplaatsenOver g
on a.Code = g.Code
WHERE a.[Birth Place]=''

hope you dont want to check for NULLs in [Birth Place] field or you've to include that too in WHERE

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

gnaus
Starting Member

Netherlands
41 Posts

Posted - 08/17/2012 :  04:50:32  Show Profile  Reply with Quote
Super!
thank you very much both of you!!

I used the input from visakh16 en that worked perfect!



GN
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52326 Posts

Posted - 08/17/2012 :  10:23:47  Show Profile  Reply with Quote
no problem
you're welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000