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

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Update: multi-part identifier could not be bound

Author  Topic 

gnaus
Starting Member

41 Posts

Posted - 2012-08-16 : 10:05:35
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
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-08-16 : 11:15:18
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

52326 Posts

Posted - 2012-08-16 : 15:02:52
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

41 Posts

Posted - 2012-08-17 : 04:50:32
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

52326 Posts

Posted - 2012-08-17 : 10:23:47
no problem
you're welcome

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

Go to Top of Page
   

- Advertisement -