Put the code before your "create table #t..." statement. Easy way to avoid error messages whether #t already exists or not.
2016-04-06
1,770 reads
Mike Arney,
2008-10-06
Put the code before your "create table #t..." statement. Easy way to avoid error messages whether #t already exists or not.
-- Drop table #t if it exists (swallow the error if not) begin try drop table #t; end try begin catch end catch;
2016-04-06
1,770 reads
2015-04-10
2,058 reads
2014-05-23
2,251 reads
2013-06-24
2,872 reads
2013-05-24
2,346 reads