set nocount on
set transaction isolation level read COMMITTED
set deadlock_priority LOW
 
SELECT
      nvcName as ApplicationName,
      nErrorCategory,
      DATEADD(hh,-5,dtSuspendTimeStamp) as DateSuspended, -- Subtract the appropriate hours for your timezone
      nvcAdapter as Adapter,
      nvcURI as URI,
      nvcErrorDescription as ErrorDescription,
    CASE nState
        WHEN 1 THEN 'Ready To Run'
        WHEN 2 THEN 'Active'
        WHEN 4 THEN 'Suspended Resumable'
        WHEN 8 THEN 'Dehydrated'
        WHEN 16 THEN 'Completed With Discarded Messages'
        WHEN 32 THEN 'Suspended Non-Resumable'
    END as State
FROM InstancesSuspended WITH (NOLOCK)
LEFT JOIN [Services] WITH (NOLOCK)
      on InstancesSuspended.uidServiceID = [Services].uidServiceID
LEFT JOIN Modules WITH (NOLOCK)
      on Modules.nModuleID = [Services].nModuleID
ORDER BY dtCreated DESC

相关文章:

  • 2022-12-23
  • 2022-02-20
  • 2021-10-24
  • 2021-12-16
  • 2022-01-09
  • 2021-11-27
  • 2022-12-23
  • 2021-10-22
猜你喜欢
  • 2021-09-07
  • 2022-01-17
  • 2021-06-20
  • 2021-12-20
  • 2022-12-23
  • 2021-10-21
  • 2021-12-31
相关资源
相似解决方案