<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>My Biztalk Tools blog : MBVQueryBuilder extensibility</title><link>http://blogs.technet.com/jpierauc/archive/tags/MBVQueryBuilder+extensibility/default.aspx</link><description>Tags: MBVQueryBuilder extensibility</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Comming soon: Tool to build your own queries for MBV</title><link>http://blogs.technet.com/jpierauc/archive/2009/04/01/comming-soon-tool-to-build-your-own-queries-for-mbv.aspx</link><pubDate>Wed, 01 Apr 2009 20:49:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3221245</guid><dc:creator>jpierauc</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.technet.com/jpierauc/comments/3221245.aspx</comments><wfw:commentRss>http://blogs.technet.com/jpierauc/commentrss.aspx?PostID=3221245</wfw:commentRss><description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I create this post just to announce that&amp;nbsp;I will&amp;nbsp;make available very soon&amp;nbsp;a&amp;nbsp;tool to build queries for MBV : &lt;STRONG&gt;&lt;U&gt;MBVQueryBuilder&lt;/U&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Let me explain quickly&amp;nbsp;role of this tool&amp;nbsp;as&amp;nbsp;I will make a&amp;nbsp;more detailed post on that later :&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;As you noticed, I added already a lot&amp;nbsp;queries embeded&amp;nbsp;in MBV exe but&amp;nbsp;because more and&amp;nbsp;more MBV users, inside&amp;nbsp;or outside Microsoft,&amp;nbsp;suggest&amp;nbsp;me to add some queries in MBV, I decided for a while to change MBV Architecture to be easily extensible in term of queries&amp;nbsp;to add (MBV version 10.12 allow you to add also your own rules).&lt;/P&gt;
&lt;P&gt;So it means that MBV accept "custom" queries to be added in&amp;nbsp;its lists of queries via an XML&amp;nbsp;file.&lt;/P&gt;
&lt;P&gt;To achieve that, you will just have&amp;nbsp;to&amp;nbsp;use&amp;nbsp;&amp;nbsp;MBVQueryBuilder tool to&amp;nbsp;create&amp;nbsp;your custom queries with&amp;nbsp;also their&amp;nbsp;rules (warnings they can&amp;nbsp;generate) in a queries&amp;nbsp;repository&amp;nbsp;XML file.&lt;BR&gt;To create a query, you will have to provide some information like its Type (SQL, WMI, BAT, CMD, VBS), Caption,&amp;nbsp;Comment, Target&amp;nbsp;Type (MsgBox db, Mgmt&amp;nbsp;db,&amp;nbsp;ALL BT servers, ALL Biztalk SQL Servers,etc...)&amp;nbsp;, and of course its body (ex: "Select @@ServerName" for a SQL query, &amp;nbsp;or "Select * from MSBTS_SendPort"&amp;nbsp; for a BizTalk WMI one)&lt;BR&gt;&lt;BR&gt;MBV contain a query execution engine&amp;nbsp;for&amp;nbsp;queries of type SQL, WMI, CMD, .BAT, or VBS so it will automatically execute your queries knowing&amp;nbsp; just its type and body.&lt;/P&gt;
&lt;P&gt;Once you built your repository of queries,&amp;nbsp;you can&amp;nbsp;select in the same tool the&amp;nbsp;specific queries you want to be visible&amp;nbsp; in MBV and save them&amp;nbsp;in&amp;nbsp;an MBVEXT.XML file.&lt;BR&gt;&lt;BR&gt;This file must be put in the same folder than MBV, and&amp;nbsp;when MBV will&amp;nbsp;be&amp;nbsp;started you will see your custom queries&amp;nbsp;in an additional&amp;nbsp;listview in MBV Gui interface, that's all&amp;nbsp;&amp;nbsp;!&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;you can then select/unselect your queries like for any embeded queries an start a Collect process. and output&amp;nbsp;of your queries will be also visible in the resulting HTML report&lt;/P&gt;
&lt;P&gt;To see&amp;nbsp;a concrete sample of this MBV query extensibility, you can have a look on following Thiago's Post&amp;nbsp;(Thanks Thiago&amp;nbsp;to have shared that) :&lt;BR&gt;&lt;BR&gt;&lt;A href="http://connectedthoughts.wordpress.com/2009/03/19/extending-msgboxviewer-with-biztalk-message-body-tracking-count-queries/"&gt;http://connectedthoughts.wordpress.com/2009/03/19/extending-msgboxviewer-with-biztalk-message-body-tracking-count-queries/&lt;/A&gt;&lt;BR&gt;&lt;/P&gt;
&lt;P&gt;So stay tuned for availability&amp;nbsp;of &amp;nbsp;this tool !&lt;/P&gt;
&lt;P&gt;JP&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3221245" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/jpierauc/archive/tags/MBVQueryBuilder+extensibility/default.aspx">MBVQueryBuilder extensibility</category></item></channel></rss>