What’s better than dropping your temp tables at the end of every script? Checking for their existence at the beginning of the script and dropping them.
1 | IF OBJECT_ID( 'tempdb..#t' ) IS NOT NULL DROP TABLE #t; |
What’s better than dropping your temp tables at the end of every script? Checking for their existence at the beginning of the script and dropping them.
1 | IF OBJECT_ID( 'tempdb..#t' ) IS NOT NULL DROP TABLE #t; |