Need to enable ddl-in-tran for tempdb for the delete procs to work,
and the columns of the delete-by-index temp tables weren't correct.