• SELECT @exec_str = "SELECT 'INSERT INTO " + @TableName + " VALUES (' + "

    line fails to compile in SQL Server Management Studio