Skip to content

Commit

Permalink
Merge pull request #3426 from erikdarlingdata/issue_3425
Browse files Browse the repository at this point in the history
Skip xp_regread if we don't have sa perms
  • Loading branch information
BrentOzar authored Feb 16, 2024
2 parents 467ee62 + 58bbf14 commit 8affa4c
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 8affa4c

Please sign in to comment.