You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of the script
sp_Blitz 8.16
Date 2023-08-20
What is the current behavior?
sp_Blitz checks if the user has ALTER TRACE rights and sets @skiptrace accordingly.
In the TOURSTOP07 part of the script the "default trace enabled" is queried from the sys.traces which the user can view and we are ignoring the traces checks due to @skiptrace = 1.
In order to the check to be skipped the @SkipChecksDatabase, @SkipChecksSchema, and @SkipChecksTable need to be passed with check 106 present in the @SkipChecksTable.
If the current behavior is a bug, please provide the steps to reproduce.
Create a user on the SQL server with VIEW SERVER STATE rights in the db_data_reader role. Execute: SELECT [path] FROM sys.traces WHERE [is_default] = 1;
This should fail.
What is the expected behavior?
Check 106 is added automatically added to the #SkipChecks table in TOURSTOP07 part:
INSERT #SkipChecks (DatabaseName, CheckID, ServerName)
SELECT
v.*
FROM (VALUES(NULL, 106, NULL)) AS v (DatabaseName, CheckID, ServerName) /*alter trace*/
WHERE @SkipTrace = 1;
Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?
SQL server 2017 (Web)
The text was updated successfully, but these errors were encountered:
Version of the script
sp_Blitz 8.16
Date 2023-08-20
What is the current behavior?
sp_Blitz checks if the user has ALTER TRACE rights and sets @skiptrace accordingly.
In the TOURSTOP07 part of the script the "default trace enabled" is queried from the sys.traces which the user can view and we are ignoring the traces checks due to @skiptrace = 1.
In order to the check to be skipped the @SkipChecksDatabase, @SkipChecksSchema, and @SkipChecksTable need to be passed with check 106 present in the @SkipChecksTable.
If the current behavior is a bug, please provide the steps to reproduce.
Create a user on the SQL server with VIEW SERVER STATE rights in the db_data_reader role. Execute:
SELECT [path] FROM sys.traces WHERE [is_default] = 1;
This should fail.
What is the expected behavior?
Check 106 is added automatically added to the #SkipChecks table in TOURSTOP07 part:
Which versions of SQL Server and which OS are affected by this issue? Did this work in previous versions of our procedures?
SQL server 2017 (Web)
The text was updated successfully, but these errors were encountered: