You can use either DBCC UPGRADE_OBJECT or EXECUTE ... WITH UPGRADE to force procedure query trees to be rebuilt (including object resolution) from the source text in syscomments. The DBCC does not actually execute the procedure, while EXECUTE WITH UPGRADE does. The DBCC can be used to rebuild all procedures in a database with a single command.