stephen09
0 pts. | Apr 19 2006 11:17AM GMT
If you are planning on dropping and recreating the tables used in the stored procedure, why not use tables in a regular database instead of tempdb? Then, you could use IF EXISTS to check that the table is there before trying to delete it. Also, temp tables are destroyed whevever your connection ends. I’m guessing that you can’t delete the temp tables the second time around becuase they don’t exist anymore.
Hope this helps,
Stephen






