Skip to content

Commit 6d6fdfb

Browse files
authored
Merge pull request #3597 from Tisit/dev
sp_Blitz - correctly check permissions for sys.traces
2 parents ffc4769 + 33eb493 commit 6d6fdfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sp_Blitz.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ AS
287287
(
288288
SELECT
289289
1/0
290-
FROM fn_my_permissions(N'sys.traces', N'OBJECT') AS fmp
291-
WHERE fmp.permission_name = N'ALTER'
290+
FROM fn_my_permissions(NULL, NULL) AS fmp
291+
WHERE fmp.permission_name = N'ALTER TRACE'
292292
)
293293
BEGIN
294294
SET @SkipTrace = 1;

0 commit comments

Comments
 (0)