﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Microsoft Analysis Services</title>
    <description>Microsoft Analysis Services</description>
    <link>http://www.tobo.ch/dnn/Home/tabid/36/BlogId/2/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>blog@tobo.ch</managingEditor>
    <webMaster>info@tobo.ch</webMaster>
    <pubDate>Sun, 05 Sep 2010 03:12:11 GMT</pubDate>
    <lastBuildDate>Sun, 05 Sep 2010 03:12:11 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.4.0.39853</generator>
    <item>
      <title>Gemini and SQL Server 2008 R2 Setup</title>
      <description>&lt;p&gt;While installing the August CTP of SQL Server 2008 R2 I recognized a new dialog in the setup-wizard.&lt;/p&gt; &lt;p&gt;This dialog allows selecting between two roles. One is to install SQL Server Features – for example if you install a new SQL Server. And the other one if you want to install Gemini in a SharePoint Farm.&lt;/p&gt; &lt;p&gt;I will do the Gemini installation as soon as possible, an will let you know about the facts in my blog.&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.tobo.ch/DNN/DNN/Portals/0/digmeta/1/WindowsLiveWriter/GeminiandSQLServer2008R2Setup_E76B/Seutp%202_2.jpg"&gt;&lt;img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Seutp 2" border="0" alt="Seutp 2" src="http://www.tobo.ch/DNN/DNN/Portals/0/digmeta/1/WindowsLiveWriter/GeminiandSQLServer2008R2Setup_E76B/Seutp%202_thumb.jpg" width="665" height="500"&gt;&lt;/a&gt; &lt;/p&gt; &lt;div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:453aa255-e867-45dd-b743-21def03244f4" class="wlWriterEditableSmartContent"&gt;Technorati-Tags: &lt;a href="http://technorati.com/tags/SQL+Server+2008+R2+CTP+Gemini" rel="tag"&gt;SQL Server 2008 R2 CTP Gemini&lt;/a&gt;&lt;/div&gt;</description>
      <link>http://www.tobo.ch/dnn/Home/tabid/36/EntryID/20/Default.aspx</link>
      <author>blog@tobo.ch</author>
      <comments>http://www.tobo.ch/dnn/Home/tabid/36/EntryID/20/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.tobo.ch/DNN/Default.aspx?tabid=36&amp;EntryID=20</guid>
      <pubDate>Wed, 12 Aug 2009 14:27:38 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.tobo.ch/DNN/DesktopModules/Blog/Trackback.aspx?id=20</trackback:ping>
    </item>
    <item>
      <title>MDX LinkSet</title>
      <description>&lt;p&gt;While implementing dynamic dimension data security in Analysis Services 2005 I ran into a problem with linking members of a set into another hierarchy. My problem was that I needed a set of members from a specific hierarchy "A" to specify the allowed member set of the dimension hierarchy "A". Unfortunately it wasn't possible to get the members from the hierarchy "A". It was only possible to get them from another hierarchy "B" of the same dimension.  &lt;p&gt;As you possibly know, there is a nice MDX function LinkMember, which can be used to do exactly this kind of conversion between hierarchies. Sadly, you can only link one member, but not a whole set of members.  &lt;p&gt;I've searched a long time to find a solution for this problem, but couldn't find something. As far as I know, there is no possibility to do this in MDX, so I wrote my own LinkSet function in a .NET assembly. The following code-listing shows how I did that. I know there is possibly a better and more flexible solution, but it works for my requirements.  &lt;p&gt;&lt;font face="Courier New"&gt;public static Set LinkSet(Set set, Hierarchy hierarchy)&lt;br&gt;{&lt;br&gt;    SetBuilder sbReturn = new SetBuilder();&lt;br&gt;    foreach(Tuple currentTuple in set.Tuples)&lt;br&gt;    {&lt;br&gt;        Expression exp = new Expression(hierarchy.UniqueName + ".[" + currentTuple.Members[0].Caption + "]");&lt;br&gt;        Tuple newTuple = exp.CalculateMdxObject(null).ToTuple();&lt;br&gt;        sbReturn.Add(newTuple);&lt;br&gt;    } &lt;/font&gt; &lt;p&gt;&lt;font face="Courier New"&gt;    return sbReturn.ToSet();&lt;br&gt;}&lt;/font&gt; &lt;p&gt;  &lt;p&gt;Technorati Tags: &lt;a href="http://technorati.com/tags/Microsoft Analysis Services"&gt;Microsoft Analysis Services&lt;/a&gt;, &lt;a href="http://technorati.com/tags/MDX"&gt;MDX&lt;/a&gt;, &lt;a href="http://technorati.com/tags/OLAP"&gt;OLAP&lt;/a&gt;&lt;/p&gt;</description>
      <link>http://www.tobo.ch/dnn/Home/tabid/36/EntryID/12/Default.aspx</link>
      <author>blog@tobo.ch</author>
      <comments>http://www.tobo.ch/dnn/Home/tabid/36/EntryID/12/Default.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.tobo.ch/DNN/Default.aspx?tabid=36&amp;EntryID=12</guid>
      <pubDate>Fri, 09 Nov 2007 13:55:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.tobo.ch/DNN/DesktopModules/Blog/Trackback.aspx?id=12</trackback:ping>
    </item>
  </channel>
</rss>