Skip to content

Commit e37854c

Browse files
committed
Clean up temp table #dbcc_events_from_trace
Not only will this keep the script nice and shiny, it will also stop breaking it when you modify this to run as a script instead of as a stored procedure
1 parent 179ecc0 commit e37854c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sp_Blitz.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,9 @@ AS
344344
DbName NVARCHAR(128) NULL
345345
)
346346

347+
IF OBJECT_ID('tempdb..#dbcc_events_from_trace') IS NOT NULL
348+
DROP TABLE #dbcc_events_from_trace
349+
347350

348351
IF OBJECT_ID('tempdb..#LogInfo2012') IS NOT NULL
349352
DROP TABLE #LogInfo2012;

0 commit comments

Comments
 (0)