FIX: MDX Queries from Query Analyzer to a Linked Analysis Server Result in Fatal Exception (316295)



The information in this article applies to:

  • Microsoft SQL Server 2000 Analysis Services

This article was previously published under Q316295
BUG #: 12736 (Plato7X)

SYMPTOMS

When you execute a Multidimensional Expressions (MDX) query against a SQL Server Linked Analysis Server configured with the AllowInProcess property set to true, an error message similar to the following occurs if there are any syntax errors in the MDX query:
Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'MSOLAP' reported an error.
ODBC: Msg 0, Level 19, State 1
SqlDumpExceptionHandler: Process 51 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
[OLE/DB provider returned message: An unexpected internal error has occurred.]
[OLE/DB provider returned message: Formula error - cannot find dimension member ("[Time].[1999]") - in a name-binding function]

RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next SQL Server service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:
  Date         Time          Version       Size  File name   
  -----------------------------------------------------------------------
  03-JAN-2002  19:04       8.0.562.0    213,572  Msmdcb80.dll
  19-MAR-2002  13:57       8.0.0.601  4,043,328  Msmddo80.dll
  19-MAR-2002  13:56       8.0.601.0  1,008,192  Msmdgd80.dll
  19-MAR-2002  12:53       8.0.601.0  1,774,148  Msmdsrv.exe
  19-MAR-2002  13:57       8.0.601.0  2,024,016  Msolap80.dll
  18-APR-2001  00:23   2000.80.382.0    815,676  Sqldata.dll
  19-MAR-2002  13:56   2000.80.534.0    590,396  Sqlsort.dll 
				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open SQL Enterprise Manager and create a new linked server with the following characteristics:
    • Linked Server Name = "olap"
    • Provider Name = "Microsoft OLE DB Provider for OLAP Services 8.0"
    • Product Name = "Analysis Services 2000"
    • Data Source = "localhost"
    • Catalog = "Foodmart 2000"
  2. Click Provider Options, and then click to select AllowInProcess.
  3. Click OK.
  4. Start Query Analyzer and execute the following query to verify that the linked server works properly:
    SELECT * FROM openquery(olap,'SELECT MEASURES.MEMBERS ON COLUMNS,
       PRODUCT.MEMBERS ON ROWS FROM SALES')
    					
  5. Now execute the following query:
    SELECT * FROM openquery(olap,'SELECT MEASURES.MEMBERS ON COLUMNS, 
       PRODUCT.MEMBERS ON ROWS FROM SALES WHERE ([Time].[1999])')
    					

Modification Type:MinorLast Reviewed:10/5/2005
Keywords:kbBug kbfix kbQFE KB316295