SQL: Check For Temp Table and Drop Temp Table If It Exists

11/26/2019 8:13:36 PM

Check to see if a temp table exists. If so, drop it.


IF OBJECT_ID('tempdb..#tempTableName') IS NOT NULL DROP TABLE #tempTableName