feat: sp_HumanEvents
Add Wildcard Support, A Few Fixes, And Event Type Check Handling
#641
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat:
sp_HumanEvents
Add Wildcard Support, A Few Fixes, And Event Type Check HandlingCloses #639 , #640
Wildcard support for the below parameters:
@database_name
@object_name
@username
@client_hostname
@client_app_name
Remove ending periods on @help for for @cleanup and @gimme_danger
Bug in substring for @view_sql
Bug that Waits session doesn't support object_name
Use @@Procid for @help query
Use Lower on event type to avoid redundancy
Add event type and pattern variables to centralize checks
Format three IF blocks
Considerations For Maintainers
@use_like
parameter appropriate? Should auto opt-in without an opt-out?@database_name
and/or@object_name
with an exact match first even when wild card characters are found to hopefully not break folks and be helpfu. Is this ok?@gimme_danger
check for predicates close to 1000 characters? The limit is 3000 characters and MSSQL will complain. Is that enough?@object_schema
?@event_type = N'waits'
using@object_name
? Should the procedure raise an error with this or continue as is?object_id
for the blocking@event_type
to filter out theis_ms_shipped
objects. Users could get around this if not using wildcard becauseOBJECT_ID
is used instead of a query tosys.objects
.Work To Be Done