Error when generating an execution plan for a procedure:
Invalid object name 'temptable'
Estimated execution plan against procedures with temporary tables is not allowed.
Before generating the execution plan, click on the "Include actual execution plan for each executed statement" icon or from the Editor menu item.