BizTalk Tip : Number of Orchestrations Tracking Data Query

Quick query to give number of orchestration instances over the last week. Grouped by orchestration name.

USE [BizTalkDTADb]

SELECT
	bts_Orchestration.nvcFullName,
	count(bts_Orchestration.nvcFullName) 'COUNT'
FROM
	dta_DebugTrace with (READPAST) JOIN dta_ServiceInstances on dta_DebugTrace.uidServiceInstanceID = dta_ServiceInstances.uidServiceInstanceId
								   LEFT JOIN BizTalkMgmtDb.dbo.bts_Orchestration on dta_ServiceInstances.uidServiceId = bts_Orchestration.uidGUID
WHERE 
	dta_ServiceInstances.dtEndTime >= DATEADD(WEEK, -1, GETDATE())
GROUP BY bts_Orchestration.nvcFullName
ORDER BY 'COUNT' desc
Advertisements
This entry was posted in BizTalk Server, SQL Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s