SQLQUERYNOTIFICATIONSERVICE is something which runs and stop and runs and stops. You would have to run your query at the exact second it runs.
What exactly are you trying to accomplish? Are you having a problem of some kind?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I would like to get your helps and expertise regarding finding a session id and its process name in my test database.
I am having a scenario that I would like to find the session id associated with the SQLQUERYNOTIFICATIONSERVICE running in my test database.
I googled and I found this query
select session_id, program_name, interface_name from sys.dm_exec_sessions where database_id = 13;
But it did not give me the SQLQUERYNOTIFICATIONSERVICE process that currently running in my database number 13.
So I would like to seek your help and expertise if you can direct me to a query that would give us the session_id, process_id and process_name of every process running in my test database number 13.
Many Thanks for the helps,
Du
SQLQUERYNOTIFICATIONSERVICE is something which runs and stop and runs and stops. You would have to run your query at the exact second it runs.
What exactly are you trying to accomplish? Are you having a problem of some kind?
Hi @minh tran ,
Welcome to Microsoft Q&A!
You can try to use sp_WhoIsActive to get more information.
https://www.sqlshack.com/monitoring-activities-using-sp_whoisactive-in-sql-server/
http://whoisactive.com/docs/06_options/
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.