Wondering how to know if a temp table already exists in the database. Here is a simple command
IF
OBJECT_ID(‘tempdb..#temp’) IS NOT NULL
DROP TABLE #temp
Wondering how to know if a temp table already exists in the database. Here is a simple command
IF
OBJECT_ID(‘tempdb..#temp’) IS NOT NULL
DROP TABLE #temp