SQL Monitor - Long Running Query Alert.
IanKeogh
Posts: 10 Bronze 1
SQL monitor, the alert for long running queries. i am trying to exclude jobs or queries that contain the following keywords. I separate them using | but that does not seems to work. And i know very little about regex.
So obviously the | separator is not working for me, could someone tell me the correct syntax please?
JOBS
UpdateStats
ReIndex
QUERY KEYWORDS
Index
Statistics
Below is what I have.
So obviously the | separator is not working for me, could someone tell me the correct syntax please?
JOBS
UpdateStats
ReIndex
QUERY KEYWORDS
Index
Statistics
Below is what I have.
Tagged:
Best Answer
-
ThomasBE Posts: 24 Bronze 3You have to use 'ALTER INDEX' instead of 'INDEX'.
Mine is configured like:
Answers
Hi Ian,
Sorry this doesn't look to be working for you.
I would suggest putting these on separate lines and seeing if this makes any difference rather than using the | alternation.
Please let us know if this still doesn't look to be working as desired.
If you haven't already seen from the help window in the UI, here are some helpful links on RegEx:
https://learn.microsoft.com/en-us/dotnet/standard/base-types/regular-expression-language-quick-reference
https://regexlib.com/CheatSheet.aspx
Tom Claringbold | Redgate Software
Have you visited our Help Center?
Thank you, i searched for that