Edgar,
We tried your first example to do a create of the temporary table but the following Execute Immediate throws an error when it is changed to an Insert Into statement. The records still seem to get populated, at least when tried in the sql query window (not tried in the sp yet). I am not sure why an error is thrown and it a non-descript ISAM error. We also tried to drop the table in the try catch instead of creating the table and leaving the select into statement as is, but it says that it is locked and does not drop the table, so this does not work either. Are we going to have to trap the execute immediate error as well and just ignore?
Thank you,
Dave Anderson