<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.adatis.co.uk/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>Search results matching tags 'BIDS' and 'Analysis Services'</title><link>http://blogs.adatis.co.uk/search/SearchResults.aspx?o=DateDescending&amp;tag=BIDS,Analysis+Services&amp;orTags=0</link><description>Search results matching tags 'BIDS' and 'Analysis Services'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Analysis Services Stored Procedures\Views</title><link>http://blogs.adatis.co.uk/blogs/timkent/archive/2007/08/02/analysis-services-stored-procedures-views.aspx</link><pubDate>Thu, 02 Aug 2007 08:43:21 GMT</pubDate><guid isPermaLink="false">8d7d37f8-4a66-4c95-9fba-293fa87607dc:63</guid><dc:creator>Tim Kent</dc:creator><description>&lt;p&gt;Whilst not changing nappies and singing lullabies, &lt;a href="http://blogs.adatis.co.uk/blogs/sachatomey/" target="_blank"&gt;Sacha&lt;/a&gt; is developing a &lt;a href="http://blogs.adatis.co.uk/blogs/sachatomey/archive/2007/07/31/xml-namespaces-and-the-adomd-xml-reader-result-set.aspx" target="_blank"&gt;.Net mdx helper class&lt;/a&gt; that behaves very much like an ADOMD command and runs an mdx query that returns a data table.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;quot;Why not just use ADOMD?&amp;quot; I hear you ask - as Sacha mentions there are a number of reasons&amp;nbsp;such as the fact that the data types are not returned (needed by .Net controls like Chartfx) and top level hierarchies (&amp;quot;All Time&amp;quot; etc ) are not always returned dependant on your query layout.&amp;nbsp; And in fact&amp;nbsp;Sacha&amp;#39;s little&amp;nbsp;helper (ho ho ho) does use ADOMD but rather than use the returned table it parses the XML file that is generated.&amp;nbsp; This XML is actually quite simple once you get your head around the layout and is in fact very rich containing all sorts of metadata that is not returned in&amp;nbsp;by ADOMD&lt;/p&gt; &lt;p&gt;Other&amp;nbsp;nice functionality includes the ability to&amp;nbsp;return a number of cube and database properties (Description etc, last update, last processed); &lt;/p&gt; &lt;p&gt;But the functionality I really like is that the class uses a stored query definition which can contain parameters much like a SQL stored procedure.&amp;nbsp;&amp;nbsp;&amp;nbsp; Sach and I have had a number of conversations over the past few days about why there is no concept of this in AS2005 (or 2008?) and haven&amp;#39;t come up with a valid reason.&amp;nbsp; Surely people out there want to be able to re-use the same mdx queries (with different parameters).&amp;nbsp; How cool would it be to be able to use &amp;quot;exec mdxsp_GetResults(Param1, Param2)&amp;quot; in various mdx editors.&amp;nbsp; At current the query defs are stored in text files but we&amp;#39;re looking at alternatives such as using msdb or the even the xmla cube def itself.&lt;/p&gt; &lt;p&gt;In fact I&amp;#39;m surprised that no-one has done this already&amp;nbsp;- or have they?? Very interested to know if people think this is something worthwhile?&lt;/p&gt; &lt;p&gt;NB - if you found this blog looking for the excellent &lt;a href="http://www.codeplex.com/ASStoredProcedures" target="_blank"&gt;AS Stored procedures project it&amp;#39;s here&lt;/a&gt;&lt;/p&gt; &lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:fa11c3bf-158e-4c9c-b870-e6c4fc2919fd" style="padding-right:0px;display:inline;padding-left:0px;padding-bottom:0px;margin:0px;padding-top:0px;"&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/MDX" rel="tag"&gt;MDX&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Analysis%20Services" rel="tag"&gt;Analysis Services&lt;/a&gt;, &lt;a href="http://technorati.com/tags/Sql%20Server" rel="tag"&gt;Sql Server&lt;/a&gt;&lt;/div&gt;</description></item></channel></rss>