Skip to content

Commit d6fb4de

Browse files
authored
Merge pull request #1124 from BrentOzarULTD/Issue_1099
Closes #1099
2 parents 4c9cc1a + bd36487 commit d6fb4de

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

sp_BlitzCache.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4376,6 +4376,20 @@ BEGIN
43764376
'You have the following Global Trace Flags enabled: ' + (SELECT TOP 1 tf.global_trace_flags FROM #trace_flags AS tf WHERE tf.global_trace_flags IS NOT NULL)) ;
43774377
END
43784378

4379+
IF NOT EXISTS (SELECT 1/0
4380+
FROM ##bou_BlitzCacheResults AS bcr
4381+
WHERE bcr.Priority = 2147483646
4382+
)
4383+
INSERT INTO ##bou_BlitzCacheResults (SPID, CheckID, Priority, FindingsGroup, Finding, URL, Details)
4384+
VALUES (@@SPID,
4385+
2147483646,
4386+
255,
4387+
'Need more help?' ,
4388+
'Paste your plan on the internet!',
4389+
'http://pastetheplan.com',
4390+
'This makes it easy to share plans and post them to Q&A sites like https://dba.stackexchange.com/!') ;
4391+
4392+
43794393

43804394
IF NOT EXISTS (SELECT 1/0
43814395
FROM ##bou_BlitzCacheResults AS bcr

sp_BlitzQueryStore.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3837,6 +3837,20 @@ BEGIN
38373837
FROM rowcount_worst
38383838
OPTION (RECOMPILE);
38393839

3840+
3841+
IF NOT EXISTS (SELECT 1/0
3842+
FROM #warning_results AS bcr
3843+
WHERE bcr.Priority = 2147483646
3844+
)
3845+
INSERT INTO #warning_results (CheckID, Priority, FindingsGroup, Finding, URL, Details)
3846+
VALUES (2147483646,
3847+
255,
3848+
'Need more help?' ,
3849+
'Paste your plan on the internet!',
3850+
'http://pastetheplan.com',
3851+
'This makes it easy to share plans and post them to Q&A sites like https://dba.stackexchange.com/!') ;
3852+
3853+
38403854
IF NOT EXISTS (SELECT 1/0
38413855
FROM #warning_results AS bcr
38423856
WHERE bcr.Priority = 2147483647

0 commit comments

Comments
 (0)