Skip to content

Commit 8795199

Browse files
committed
#1043 sp_Blitz don't warn on SA-owned endpoints
I think principal_id should always be 1 for SA (even if they’ve renamed SA.)
1 parent e3c3ba5 commit 8795199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sp_Blitz.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6022,7 +6022,7 @@ IF @ProductVersionMajor >= 10
60226022
) AS [Details]
60236023
FROM sys.database_mirroring_endpoints ep
60246024
LEFT OUTER JOIN sys.dm_server_services s ON SUSER_NAME(ep.principal_id) = s.service_account
6025-
WHERE s.service_account IS NULL;
6025+
WHERE s.service_account IS NULL AND ep.principal_id <> 1;
60266026
END;
60276027

60286028
/*Check for the last good DBCC CHECKDB date */

0 commit comments

Comments
 (0)