Skip to content

Commit

Permalink
sp_Blitz - correctly check permissions for sys.traces
Browse files Browse the repository at this point in the history
  • Loading branch information
Tisit committed Dec 9, 2024
1 parent ffc4769 commit 33eb493
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sp_Blitz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ AS
(
SELECT
1/0
FROM fn_my_permissions(N'sys.traces', N'OBJECT') AS fmp
WHERE fmp.permission_name = N'ALTER'
FROM fn_my_permissions(NULL, NULL) AS fmp
WHERE fmp.permission_name = N'ALTER TRACE'
)
BEGIN
SET @SkipTrace = 1;
Expand Down

0 comments on commit 33eb493

Please sign in to comment.