December 13, 2009 at 4:04 pm
The following statement keeps saying ResourseOwner.UserID is and invalid object name. What am I doing wrong?
UPDATE dbo.ResourceOwner.UserID
SET dbo.ResourceOwner.UserID = dbo.Testupdate.userid
FROM dbo.ResourceOwner INNER JOIN
dbo.TestUpdate ON dbo.ResourceOwner.RESOURCEID = dbo.TestUpdate.EquipId
WHERE (dbo.TestUpdate.EquipName <> 'NULL')
Kris
December 13, 2009 at 4:21 pm
you don't include the column in the UPDATE, only the SET.
UPDATE dbo.ResourceOwner
SET dbo.ResourceOwner.UserID = dbo.Testupdate.userid
FROM dbo.ResourceOwner INNER JOIN
dbo.TestUpdate ON dbo.ResourceOwner.RESOURCEID = dbo.TestUpdate.EquipId
WHERE (dbo.TestUpdate.EquipName <> 'NULL')
December 13, 2009 at 5:24 pm
omg. I didn't even notice der. Thanks for your help. Worked perfectly
Kris
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply