Microsoft KB Archive/317161

= FIX: .NET MDX Queries Fail When You Use the OleDbDataAdapter or OleDbDataReader Classes =

Article ID: 317161

Article Last Modified on 2/20/2007

-

APPLIES TO


 * Microsoft SQL Server 2000 Analysis Services

-



This article was previously published under Q317161



BUG #: 12737 (Plato7X)



SYMPTOMS
When you run Multidimensional Expression (MDX) queries by using the OleDbDataAdapter or OleDbDataReader classes, one of the following behaviors occur:  The program stops responding (hangs) after executing several queries. The program quits and you receive the following error message:

Runtime Error R6025

- pure virtual function call

 The program quits unexpectedly before all the queries have been run. The program quits and you receive the following error message:

An unhandled exception of type &quot;System.StackOverflowException&quot; occurred in mscorlib.dll

 The program quits and you receive the following error message:

A first chance exception of type &quot;System.Data.OleDb.OleDbException&quot; occurred in system.data.dll





RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How To Obtain the Latest SQL Server 2000 Service Pack

NOTE: The following hotfix was created before the release of Microsoft SQL Server 2000 Service Pack 3.

The English version of this fix should have the following file attributes or later: <pre class="fixed_text">  Date         Time       Version     Size              File name ---

01/22/2002  12:34 AM   8.0.569.0   2,011,728 bytes   Msolap80.dll NOTE: Because of file dependencies, the most recent hotfix or feature that contains the files may also contain additional files.

<div class="workaround_section">

WORKAROUND
To work around this behavior, use the XML for Analysis Services provider or COM InterOperability.

<div class="status_section">

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

This problem was first corrected in Microsoft SQL Server 2000 Service Pack 3.

<div class="moreinformation_section">

MORE INFORMATION
The OleDbDataAdapter and the OleDbDataReader functions are derived from the .NET Framework class System.Data.OleDb namespace. A .NET data provider describes a collection of classes used to access a data source in the managed space. With the OleDbDataAdapter function, you have a set of data commands and database connections that you can use to fill a dataset or update a data source. With the OleDbDataReader function, you can read a forward-only stream of data rows from a data source.

When you use a managed provider in .NET programs, to connect to an Analysis Services data source, the OLAP provider returns a flattened rowset instead of a multidimensional cellset.

<div class="references_section">