How to Get the Latest Policies from BizTalk Server


Hi All,

We have a requirement to compare all the business Policies fter migrating from 2009 to 2013 servers, so I quickly created one Sql query to get the latest rules in the 2009 BizTalk servers, so that it will be compared with 2013 latest rules.

Query:

USE BizTalkDTADb

USE BizTalkDTADb

SELECT drs.strName[PolicyName],cast(drs.nmajor as varchar(2))+’.’+cast(drs.nminor as varchar(2))’PolicyVersion’
FROM (SELECT ROW_NUMBER() OVER(PARTITION BY strName order by strName asc, nmajor desc,nminor desc) [Rownum],strName,
nmajor,nminor
FROM dta_RuleSets(nolock) where dtUnDeployTime IS NULL ) AS drs
WHERE drs.[Rownum] = 1

Result:

Regards,

Visit site: http://www.sqlblogging.com

Send an Email: sqlblogging

Leave a comment

Design a site like this with WordPress.com
Get started