Table variables not supported in dynamic SQL, use temp. tables for more info SQL BOL.
Good reply with best explanation.
Insert the SQL Server 2008 DVD in your machine and repair it.
Separate names with a comma.