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

Query plans getting dropped, potentially due to OPENQUERY #33

Open
amachanic opened this issue Nov 13, 2020 · 0 comments
Open

Query plans getting dropped, potentially due to OPENQUERY #33

amachanic opened this issue Nov 13, 2020 · 0 comments
Assignees

Comments

@amachanic
Copy link
Owner

Observed on SQL Server 2017:

  • Query coming in from remote server via OPENQUERY
  • Query plan not showing in sp_whoisactive output, even though it was attainable directly via requests DMV and query_plan function
  • Commenting out join predicates around line 2898 fixed the issue (user_process and start_time logic)
  • Further exploration revealed the root cause: sysprocesses "login time" had a timestamp of over 30m after that reported in the sys.dm_exec_sessions "login time" column!

Seems to be a DMV bug, but is there some workaround?

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

No branches or pull requests

1 participant