Microsoft KB Archive/936968

= FIX: You may receive incorrect results when you run a Multidimensional Expressions (MDX) query and the WHERE clause and the SELECT clause in the query contain different attributes of the same dimension in SQL Server 2005 Analysis Services =

Article ID: 936968

Article Last Modified on 6/29/2007

-

APPLIES TO


 * Microsoft SQL Server 2005 Analysis Services

-



Bug #: 500001122 (SQL Hotfix)



SYMPTOMS
When you run a Multidimensional Expressions (MDX) query in Microsoft SQL Server 2005 Analysis Services, you may receive incorrect results. This problem occurs when the following clauses in the query contain different attributes of the same dimension:
 * WHERE
 * SELECT



CAUSE
This problem occurs because the attributes are incorrectly overwritten when you run the MDX query.



Cumulative update information
To resolve this problem, obtain cumulative update package 2 for SQL Server 2005 Service Pack 2 (build 3175). For more information about how to obtain cumulative update package 2 (build 3175), click the following article number to view the article in the Microsoft Knowledge Base:

936305 Cumulative update package 2 for SQL Server 2005 Service Pack 2 is available



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the problem
 Open SQL Server Management Studio, and then connect to an instance of SQL Server 2005 Analysis Services. Create a new MDX query against the Adventure Works database.  Run the following MDX query: SELECT [Measures].[Internet Sales Amount] ON COLUMNS, NON EMPTY { {[Date].[Month of Year].&[1]}  //January }   ON ROWS FROM [Adventure Works] where { [Date].[Date].&[184]   //Dec 31, 2001 , [Date].[Date].&[185] //Jan 1, 2002 } 

The query returns NULL. However, the correct result should be the value for January 1, 2002.

Keywords: kbfix kbpubtypekc kbqfe kbhotfixserver KB936968

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.