UPDATE project_phases p2
SET
p2.ClartiyID = @ClarityID,
p2.Start_date = @start_date,
p2.End_date = @End_date,
p2.Planned_efforts = @Planned_efforts
FROM
WSR.dbo.project_phases p2
INNER JOIN WSR.dbo.tb_Project p1 ON p1.ProjectID=p2.ProjectID
WHERE
ProjectID = @ProjectID
但是即使找到该表,错误仍然显示,例如找不到对象名称