rdb*_*oob 4 sql-server senddbmail
I have recently implemented an Agent Job which checks SQL Server every 10mins for any long running queries and if detected it will send out a mail to recipients with the information. However since putting this in, I notice alot of the below query and wonder if this is something I should be concerned about:
WAITFOR(RECEIVE conversation_handle, service_contract_name, message_type_name, message_body FROM ExternalMailQueue INTO @msgs), TIMEOUT @rec_timeout
Run Code Online (Sandbox Code Playgroud)
从数据库邮件中了解它,等待信息是 (1x: 62093ms)BROKER_RECEIVE_WAITFOR 但我是否需要担心或只是将其从警报中排除。
通过 sp_whoisactive 查看可以看到 open_transaction 计数为 1,状态为挂起。
任何帮助表示赞赏。
根据我的经验,你应该忽略它。此查询来自使用 SQL Broker 的程序。这是正常的。该程序只是等待 SQL Broker 以这种方式通知它。(当然,等待 SQL Broker 通知会产生长时间的等待。)
我们正在使用 Broker,我也有同样的事情。
| 归档时间: |
|
| 查看次数: |
329 次 |
| 最近记录: |