Skip to content

Commit

Permalink
Merge pull request #3597 from Tisit/dev
Browse files Browse the repository at this point in the history
sp_Blitz - correctly check permissions for sys.traces
  • Loading branch information
BrentOzar authored Dec 28, 2024
2 parents ffc4769 + 33eb493 commit 6d6fdfb
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 6d6fdfb

Please sign in to comment.