Connecting Tech Pros Worldwide Help | Site Map

Multi-part identifier error

Member
 
Join Date: Jul 2009
Posts: 41
#1: Oct 1 '09
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 "ArmyRootURLPages.DateReviewed" could not be bound.

Expand|Select|Wrap|Line Numbers
  1. CREATE PROCEDURE GETASSIGNMENTS AS
  2. UPDATE TOP (20) AssignedPages
  3. SET AssignedPages.PageURL = ArmyRootURLPages.PageURL, RoleID = [Form_ArmyWebPages].roleid, PageType = 1
  4. WHERE ArmyRootURLPages.DateReviewed is Null
  5.  
Anyone know what I'm doing wrong?

Thanks
ck9663's Avatar
Expert
 
Join Date: Jun 2007
Posts: 1,925
#2: Oct 1 '09

re: Multi-part identifier error


Are you updating or inserting?

--- CK
Member
 
Join Date: Jul 2009
Posts: 41
#3: Oct 1 '09

re: Multi-part identifier error


Inserting, :(

Figured it out, thanks
Reply