Directly querying the BizTalk database for suspended messages
2011-12-03 16:13
465 查看
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
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
相关文章推荐
- Ado.net Querying the Database for Multiple Result Sets(多数据结果集)
- Ado.net Querying the Database for Multiple Result Sets(多数据结果集)
- BizTalk: Drop messages into the MessageBox database
- BizTalk Adapter Pack for Oracle:Connecting to the LOB system has failed.ORA-1017: invalid name/password
- Error querying database. Cause: java.lang.NumberFormatException: For input string: "否"
- Cannot drop the database XXX because it is being used for replication
- the transaction log for database *** is full 数据库日志已满
- WCF错误"The maximum message size quota for incoming messages (65536) has been exceeded."
- The transaction log for database 'xx' is full,Error: 9002, Severity: 17, State: 2
- django 报错:ValueError: The database backend does not accept 0 as a value for AutoField.
- for the problem ImportError: cannot import name symbol_database 'text_format'
- sqlalchemy Support for the MySQL database
- Which Accesses Proceed Directly to the Database?
- Sequel ------ The Database Toolkit for Ruby
- The transaction log for database 'NJ_Address' is full. To find out why space in the log cannot be
- Top DBA Shell Scripts for Monitoring the Database
- Tools for Administering the Database
- ICE Manual(Documentation for Ice 3.5)---The Ice Protocol(Protocol Messages)
- The connection pool for database '/data/data/....db' has been unable to grant a connection to thread
- 98 Consider the following scenario for your database: - Backup optimization is enabled in RMAN. - Th