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.
Author |
Topic |
gnaus
Starting Member
41 Posts |
Posted - 2012-08-16 : 10:05:35
|
dear reader,this is my formulaand the errorcan anybody help me?I mentioned the server en databasename en put it between [] buth nothing helpsthank you!Update dbo.[Abrona Productie$SoCM Client]Set [Birth Place] = GnGeboorteplaatsenOver.GeboorteplaatsPCDWhere dbo.[Abrona Productie$SoCM Client].Code in (select Code From GnGeboorteplaatsenOver) anddbo.[Abrona Productie$SoCM Client]. [Birth Place]=''Error:Msg 4104, Level 16, State 1, Line 1The 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.GeboorteplaatsPCDfrom dbo.[Abrona Productie$SoCM Client]join GnGeboorteplaatsenOveron dbo.[Abrona Productie$SoCM Client].Code = GnGeboorteplaatsenOver.Codeand 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. |
|
|
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 everywhereUpdate aSet a.[Birth Place] = g.GeboorteplaatsPCDfrom dbo.[Abrona Productie$SoCM Client] ajoin GnGeboorteplaatsenOver gon a.Code = g.CodeWHERE 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 MVPhttp://visakhm.blogspot.com/ |
|
|
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 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2012-08-17 : 10:23:47
|
no problemyou're welcome------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
|
|
|
|
|