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,771 reads
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;