Use CRM_Utils_SQL_TempTable to drop and create table.