Multi-part identifier error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmprescott
    New Member
    • Jul 2009
    • 41

    Multi-part identifier error

    Clearly, I don't really know what I'm doing here, but I'm trying to create a stored procedure to grab the top 20 URLs from one table and plug it into another table (along with some other info)

    I'm getting an error:

    Msg 4104, Level 16, State 1, Procedure GETASSIGNMENTS, Line 2
    The multi-part identifier "ArmyRootURLPag es.DateReviewed " could not be bound.

    Code:
    CREATE PROCEDURE GETASSIGNMENTS AS
    UPDATE TOP (20) AssignedPages
    SET AssignedPages.PageURL = ArmyRootURLPages.PageURL, RoleID = [Form_ArmyWebPages].roleid, PageType = 1
    WHERE ArmyRootURLPages.DateReviewed is Null
    Anyone know what I'm doing wrong?

    Thanks
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Are you updating or inserting?

    --- CK

    Comment

    • jmprescott
      New Member
      • Jul 2009
      • 41

      #3
      Inserting, :(

      Figured it out, thanks

      Comment

      Working...