<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Microsoft SQL Server Support Blog : SQL Analysis Services</title><link>http://blogs.msdn.com/sqlblog/archive/tags/SQL+Analysis+Services/default.aspx</link><description>Tags: SQL Analysis Services</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Class not registered error after restoring an Analysis Services database that uses the SQL Server 2005 SQL Native Client.</title><link>http://blogs.msdn.com/sqlblog/archive/2009/04/15/class-not-registered-error-after-restoring-an-analysis-services-database-that-uses-the-sql-server-2005-sql-native-client.aspx</link><pubDate>Wed, 15 Apr 2009 18:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9550931</guid><dc:creator>sqlblog</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/sqlblog/comments/9550931.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sqlblog/commentrss.aspx?PostID=9550931</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sqlblog/rsscomments.aspx?PostID=9550931</wfw:comment><description>&lt;DIV class=ExternalClass8B14EC65C1C4436882C7F980F93C0AFF&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;After&amp;nbsp;restoring an Analysis Services database that uses the SQLNCLI.1 SQL Native Client (SNAC) on a server which has never had SQL Server 2005 installed, an error similar to the following occurs during processing operations:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=1&gt;&lt;STRONG&gt;Internal error: The operation terminated unsuccessfully.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;FONT size=1&gt;Internal error: The operation terminated unsuccessfully.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=1&gt;&lt;STRONG&gt;OLE DB error: OLE DB or ODBC error: Class not registered.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=1&gt;&lt;STRONG&gt;Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'Adventure Works DW'.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=1&gt;&lt;STRONG&gt;Errors in the OLAP storage engine: An error occurred while processing the 'Internet_Sales_2001' partition of the 'Internet Sales' measure group for the 'Adventure Works' cube from the&amp;nbsp;Adventure Works DW&amp;nbsp;database.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=1&gt;
&lt;DIV&gt;&lt;STRONG&gt;Server: The operation has been cancelled.&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size=2&gt;During execution of queries that access data contained in ROLAP storage, an error message similar to the following is returned:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;B&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=2&gt;Errors in the OLAP storage engine: An error occurred while the dimension, with the ID of 'Adventure Works DW', Name of 'Internet Sales Order Details' was being processed.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=2&gt;Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'Adventure Works DW'.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=2&gt;OLE DB error: OLE DB or ODBC error: Class not registered.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT face=Calibri&gt;&lt;FONT size=2&gt;Server: The operation has been cancelled.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Opening the Property Sheet for the Data Source from SQL Server Management Studio (SSMS) or the Data Source Designer in Business Intelligence Development Studio (BIDS)&amp;nbsp;and attempting to edit the connection string returns the following error from Connection Manager:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT color=#ff0000&gt;&lt;FONT face=Calibri size=3&gt;The specified provider&lt;/FONT&gt;&lt;FONT size=2&gt; is not supported. Please choose different provider in connection manager&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Checking the connection string from either SSMS or BIDS, it is similar to the following:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Provider=SQLNCLI.1;Data Source=MyServer;Persist Security Info=True;User ID=sa;Initial Catalog=AdventureWorksDW&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Changing the connection string to use the native OLE DB provider, similar to the following:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;STRONG&gt;Provider=SQLOLEDB.1;Password=Olapolap1;Persist Security Info=True;User ID=sa;Initial Catalog=AdventureWorksDW;Data Source=MyServer&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Likewise, modifying the connection string to use the SQL Server 2008 SQL Server SNAC, similar to the following.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;Provider=SQLNCLI10.1;Integrated Security="";Persist Security Info=False;User ID=sa;Initial Catalog=AdventureWorksDW;Data Source=MyServer;Initial File Name="";Server SPN=""&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;The issue occurs because the SQLNCLI.1 provider&amp;nbsp;does not ship with SQL Server 2008 and the provider name for SNAC connections changed in SQL Server 2008. The SNAC &lt;/FONT&gt;&lt;FONT face=Calibri size=3&gt;Version Provider names for SQL Server 2005 and&amp;nbsp;SQL Server 2008&amp;nbsp;are:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;STRONG&gt;SQL Server 2005&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLNCLI.1 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;STRONG&gt;SQL Server 2008&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQLNCLI10.1 &lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;To workaround this issue, any of the following options can be used:&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Edit&amp;nbsp;the Data Source(s) for the database and switch from the SQLNCLI.1 provider to the &lt;/FONT&gt;&lt;FONT face=Calibri size=3&gt;SQLOLEDB.1 provider&lt;/FONT&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Edit&amp;nbsp;the Data Source(s) for the database and switch from the SQLNCLI.1 provider to the SQLNCLI10.1 Native Client provider.&lt;/FONT&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;D&lt;/FONT&gt;&lt;FONT face=Calibri size=3&gt;ownload and install the SQL Server 2005 SQL Native Client from the following link: &lt;/FONT&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyID=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&amp;amp;DisplayLang=en"&gt;&lt;FONT face=Calibri size=3&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&amp;amp;DisplayLang=en&lt;/FONT&gt;&lt;/A&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt" mce_keep="true"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8.5pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-fareast-font-family: 'Times New Roman'"&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;FONT face=Calibri&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: gray; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;John Desch&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="COLOR: gray; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-ascii-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-ascii-font-family: Calibri; mso-hansi-font-family: Calibri; mso-themecolor: background1; mso-themeshade: 128"&gt;&lt;FONT size=3&gt;Microsoft SQL Server Escalation Engineer&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9550931" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sqlblog/archive/tags/SQL+Setup+and+Upgrade/default.aspx">SQL Setup and Upgrade</category><category domain="http://blogs.msdn.com/sqlblog/archive/tags/SQL+Connectivity/default.aspx">SQL Connectivity</category><category domain="http://blogs.msdn.com/sqlblog/archive/tags/SQL+Analysis+Services/default.aspx">SQL Analysis Services</category></item><item><title>Working around the 4.2 billion tuple calculation limit in Analysis Services 2005 is possible in some cases...</title><link>http://blogs.msdn.com/sqlblog/archive/2007/11/06/working-around-the-4-2-billion-tuple-calculation-limit-in-analysis-services-2005-is-possible-in-some-cases.aspx</link><pubDate>Tue, 06 Nov 2007 23:23:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5943060</guid><dc:creator>sqlblog</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/sqlblog/comments/5943060.aspx</comments><wfw:commentRss>http://blogs.msdn.com/sqlblog/commentrss.aspx?PostID=5943060</wfw:commentRss><wfw:comment>http://blogs.msdn.com/sqlblog/rsscomments.aspx?PostID=5943060</wfw:comment><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;An Analysis Services 2005 query against a calculation on a cell may report the error:&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;"The expression contains a function that cannot operate on a set with more than 4,294,967,296 tuples."&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;This may be because there are simply more underlying cells in the query than the supported maximum, but in some cases, the query can be rewritten to avoid the error by breaking out parts of a clause into other clauses.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Specifically, an IIF() statement apparently considers the total number of cells for calculation from both action clauses when counting the number of underlying cells.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;But two IIF statements run within the same query are not counted together when the server code checks for this limit.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;Each appear to be evaluated seperately, and so long as neither exceeds the 4.2B tuple limit, the query will pass the check and not fail in this way.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;Here is an example of a calculation that produced this error when run for a high level cell in a relatively large database:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;IIF(&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;MDX Condition=true,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;MDX Expression 1,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;MDX Expression 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;Replacing the query with the following achieved the same results, but avoided the error:&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;IIF (&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;MDX Condition = true,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;NULL,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;MDX Expression 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;+&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;IIF(&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;MDX Condition = true,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;MDX Expression 1,&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;NULL&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;This approach allows Analysis Services to take advantage of internal optimizations since it can eliminate all cells for the first condition with NULL results, regardless of the context of the calculation.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;The server is able to use "block mode" evaluation in the formula engine that does not require each result to be evaluated on a cell by cell basis.&lt;SPAN style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/SPAN&gt;This optimization may also improve performance in some cases for the same reason.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 7.5pt; FONT-FAMILY: 'MS Sans Serif','sans-serif'; mso-bidi-font-family: 'MS Sans Serif'; mso-fareast-language: EN-US"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'; mso-bidi-font-weight: bold"&gt;&lt;STRONG&gt;Posted By: Jon Burchel&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B style="mso-bidi-font-weight: normal"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/B&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5943060" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/sqlblog/archive/tags/SQL+Tips+and+Tricks/default.aspx">SQL Tips and Tricks</category><category domain="http://blogs.msdn.com/sqlblog/archive/tags/SQL+Programmability/default.aspx">SQL Programmability</category><category domain="http://blogs.msdn.com/sqlblog/archive/tags/SQL+Analysis+Services/default.aspx">SQL Analysis Services</category></item></channel></rss>