SQL Server Forums
Profile | Register | 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
 New Topic  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
3355 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
52249 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
52249 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  
 New 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.06 seconds. Powered By: Snitz Forums 2000