We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77905af + 8346b4c commit 804560aCopy full SHA for 804560a
sp_BlitzFirst.sql
@@ -1792,7 +1792,9 @@ BEGIN
1792
1793
IF EXISTS (SELECT * FROM sys.dm_exec_requests WHERE total_elapsed_time > 5000 AND request_id > 0)
1794
1795
- DROP TABLE IF EXISTS #BlitzFirstTmpSession
+ IF OBJECT_ID('tempdb..#BlitzFirstTmpSession', 'U') IS NOT NULL
1796
+ DROP TABLE #BlitzFirstTmpSession;
1797
+
1798
SELECT DISTINCT request_session_id, resource_database_id
1799
INTO #BlitzFirstTmpSession
1800
FROM sys.dm_tran_locks
0 commit comments