You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ee7cd21
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: Documentation/sp_Blitz_Checks_by_Priority.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ Before adding a new check, make sure to add a Github issue for it first, and hav
6
6
7
7
If you want to change anything about a check - the priority, finding, URL, or ID - open a Github issue first. The relevant scripts have to be updated too.
Copy file name to clipboardExpand all lines: sp_Blitz.sql
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7079,6 +7079,62 @@ IF @ProductVersionMajor >= 10
7079
7079
OPTION (RECOMPILE)';
7080
7080
END;
7081
7081
7082
+
IFNOTEXISTS ( SELECT1
7083
+
FROM #SkipChecks
7084
+
WHERE DatabaseName ISNULLAND CheckID =273 )
7085
+
BEGIN
7086
+
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 273) WITHNOWAIT;
7087
+
7088
+
EXECdbo.sp_MSforeachdb'USE [?];
7089
+
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
7090
+
INSERT INTO #BlitzResults
7091
+
(CheckID,
7092
+
DatabaseName,
7093
+
Priority,
7094
+
FindingsGroup,
7095
+
Finding,
7096
+
URL,
7097
+
Details)
7098
+
SELECT TOP 1 273,
7099
+
N''?'',
7100
+
50,
7101
+
''AI'',
7102
+
''Constitution.md Present'',
7103
+
''https://www.brentozar.com/go/constitution'',
7104
+
''The instructions in the Consitution.md extended property will influence the behavior of AI agents like Copilot, and change the advice they give to end users querying this database. To see the instructions, run the query in the URL.''
7105
+
FROM [?].sys.extended_properties
7106
+
WHERE class = 0 AND class_desc = ''DATABASE'' AND UPPER(name) = ''CONSTITUTION.MD''
7107
+
OPTION (RECOMPILE)';
7108
+
END;
7109
+
7110
+
IFNOTEXISTS ( SELECT1
7111
+
FROM #SkipChecks
7112
+
WHERE DatabaseName ISNULLAND CheckID =274 )
7113
+
BEGIN
7114
+
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 274) WITHNOWAIT;
7115
+
7116
+
EXECdbo.sp_MSforeachdb'USE [?];
7117
+
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
7118
+
INSERT INTO #BlitzResults
7119
+
(CheckID,
7120
+
DatabaseName,
7121
+
Priority,
7122
+
FindingsGroup,
7123
+
Finding,
7124
+
URL,
7125
+
Details)
7126
+
SELECT TOP 1 274,
7127
+
N''?'',
7128
+
50,
7129
+
''AI'',
7130
+
''Agents.md Present'',
7131
+
''https://www.brentozar.com/go/constitution'',
7132
+
''Objects in this database have extended properties defined which will influence the behavior of AI agents like Copilot, and change the advice they give to end users querying this database. To see the objects and properties, run the query in the URL.''
7133
+
FROM [?].sys.extended_properties
7134
+
WHERE class = 1 AND UPPER(name) = ''AGENTS.MD''
7135
+
OPTION (RECOMPILE)';
7136
+
END;
7137
+
7082
7138
IF @ProductVersionMajor =13AND @ProductVersionMinor <2149--2016 CU1 has the fix in it
0 commit comments