Answers for "sql check if temp table exists and drop"

SQL
6

sql server drop temp table if exists

IF OBJECT_ID('tempdb..#Results') IS NOT NULL DROP TABLE #Results
GO
Posted by: Guest on April-22-2020
0

if temp table exists drop

IF OBJECT_ID(N'tempdb..#RequestingBrokers') IS NOT NULL
BEGIN
DROP TABLE #RequestingBrokers
END
GO
Posted by: Guest on June-17-2021

Code answers related to "sql check if temp table exists and drop"

Code answers related to "SQL"

Browse Popular Code Answers by Language