查询以检索给定接收位置

时间:2017-04-14 18:19:30

标签: biztalk biztalk-2013

目的:查询以检索给定接收位置接收的所有消息的日期时间。

使用:在BizTalkDTADb数据库中执行此SQL查询。在注释位置提供ReceiveLocation名称。

SELECT  
     RP.nvcName    [ReceivePortName] 
    ,RL.Name    [ReceiveLocationName]    
    ,MF.[Event/Adapter] [Adapter]
    ,RL.InboundTransportURL    [InboundTransportURL]
    ,MF.[Event/Timestamp]    [MessageReceivedDateTime]        
 FROM 
BizTalkMgmtDb.dbo.adm_ReceiveLocation RL
JOIN BizTalkMgmtDb.dbo.bts_receiveport RP ON RP.nID = RL.ReceivePortId
JOIN BizTalkDTADb.dbo.dtav_MessageFacts MF ON MF.[Event/Port] = RP.nvcName
AND MF.[Event/URL] = RL.InboundTransportURL

--Give the ReceiveLocation Name 
(I replace RL location name when executing this query)                                           
WHERE    RL.Name='<<ReceiveLocation Name>>' AND
MF.[Event/Direction] = 'Receive'
ORDER BY MessageReceivedDateTime DESC

当我使用SQLManagementstudio运行此查询时,我没有得到任何内容,查询只创建没有数据的表头,尽管我已经看到BizTalk管理控制台消息到达并通过编排进行处理。 请检查我在哪里遇到SQL查询问题?

0 个答案:

没有答案