Skip to content

Commit

Permalink
Merge pull request BrentOzarULTD#3552 from PowerDBAKlaas/validatelogi…
Browse files Browse the repository at this point in the history
…nsFix

Update sp_Blitz.sql validate logins if we are sysadmin
  • Loading branch information
BrentOzar authored Jul 2, 2024
2 parents 39f26d8 + d2800dd commit 3446b69
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions sp_Blitz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1836,9 +1836,18 @@ AS
IF @Debug IN (1, 2) RAISERROR('Running CheckId [%d].', 0, 1, 2301) WITH NOWAIT;

/*
#InvalidLogins is filled at the start during the permissions check
#InvalidLogins is filled at the start during the permissions check IF we are not sysadmin
filling it now if we are sysadmin
*/

IF @sa = 1
BEGIN
INSERT INTO #InvalidLogins
(
[LoginSID]
,[LoginName]
)
EXEC sp_validatelogins;
END;
INSERT INTO #BlitzResults
( CheckID ,
Priority ,
Expand Down

0 comments on commit 3446b69

Please sign in to comment.