Hmm... poate @qTemp_table nu conţine numele tabelei (e NULL) ?
Încearcă un SELECT @strSQL sau un PRINT @strSQL înainte de EXEC.
Răzvan