Skip to content

Commit

Permalink
Skip xp_regread if we don't have sa perms
Browse files Browse the repository at this point in the history
closes #3425
  • Loading branch information
erikdarlingdata committed Jan 18, 2024
1 parent 136de61 commit 58bbf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sp_Blitz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ AS
SELECT
v.*
FROM (VALUES(NULL, 211, NULL)) AS v (DatabaseName, CheckID, ServerName) /*xp_regread*/
WHERE @SkipXPRegRead = 1;
WHERE @sa = 0;

INSERT #SkipChecks (DatabaseName, CheckID, ServerName)
SELECT
Expand Down

0 comments on commit 58bbf14

Please sign in to comment.