Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the DMV we get the status from to sys.dm_exec_sessions instead of sys.sysprocesses #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mfuller333
Copy link
Contributor

@mfuller333 mfuller333 commented Dec 7, 2021

Change the DMV we get the status from to sys.dm_exec_sessions instead of sys.sysprocesses. This so we can see the sessions running state instead of only runnable.

Literally changing one line of code on line 3073 from
LOWER(sp.status) AS status,
to
LOWER(ISNULL(r.status, sp.status)) AS status,

Not sure why it posted with 41 changes when I just refreshed from the base, and there is only the one line changed...weird

Change the DMV we get the status from to sys.dm_exec_sessions instead of sys.sysprocesses. This so we can see the sessions as running state.
@mfuller333 mfuller333 changed the title Update sp_WhoIsActive.sql Change the DMV we get the status from to sys.dm_exec_sessions instead of sys.sysprocesses Dec 8, 2021
@mfuller333
Copy link
Contributor Author

@amachanic Do you see any issue with this?

@mfuller333
Copy link
Contributor Author

@amachanic Just touching base quick and seeing if we can get this in the next build? It appears accurate, and does not introduce any new issues. I have been running with this change for months across all environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant