Adriaan,
When you create the temp table, was included a index for the join column ?, the performance between a table without index vs an indexes table in this case can...
Sebastián Rodríguez R.
Licenciado en Informática de Gestión
sebas_rod@hotmail.com
(569) - 98626471