When writing a T-SQL script that I plan to re-run, I often use temporary tables to store temporary data. Since the temporary table is created on the fly, I would like to leave this table only if it exists (before its creation).
I will post the method that I use, but I would like to see if there is a better way.
sql-server
Nathan Bedford Aug 05 '08 at 18:18 2008-08-05 18:18
source share