The multi-part identifier "" could not be bound.

  • Hi All,

    i am trying to execute this statement:

    begin tran

    update Attributes

    set EntityId = dbo.Entity.GlobalId

    where Attributes.DQUID = dbo.Entity.GlobalId

    but am getting this error:

    Msg 4104, Level 16, State 1, Line 4

    The multi-part identifier "dbo.Entity.GlobalId" could not be bound.

    Any help much appreciated

  • You don't mention that table anywhere so the server can't know what you're talking about.

    You need to add an inner join in the from clause.

  • [font="Tahoma"]

    Try this one

    update Attributes

    set EntityId = Entity.GlobalId

    from Attributes

    Join Entity

    on Attributes.DQUID = Entity.GlobalId

    [/font]

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply