T-SQL Temp Table Check Writer #1, 2019-10-212024-07-05 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. IF OBJECT_ID('tempdb..#t') IS NOT NULL DROP TABLE #t; SQL Server