Microsoft KB Archive/239889

From BetaArchive Wiki
Knowledge Base


FIX: VBDSOWriteEnableCube: Debug Assertion Caused by a Data Type Not Addressed in the Sample Code

Article ID: 239889

Article Last Modified on 3/14/2006



APPLIES TO

  • Microsoft SQL Server OLAP Services



This article was previously published under Q239889

BUG #: 2340 (plato7x)

SYMPTOMS

You may encounter the following error when you try to run the sample code VBDSOWriteEnableCube:

Cannot create writeback table. [Microsoft] [ODBC Microsoft Access Driver] Syntax error near field definition.

CAUSE

The preceding error occurs because the code does not address the case for the adBigInt datatype in the GetColumnTypeDefinition function.

WORKAROUND

Insert an additional case in the SELECT statement in GetColumnTypeDefinition():

Case adBigInt
            GetColumnTypeDefinition = " BIGINT "
                

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0


For more information, contact your primary support provider.

MORE INFORMATION

You will encounter this error only if you are trying to write enable a cube that has a measure of datatype Big Integer (for example "Sales Count" in the Sales cube of FoodMart database).

Also, this sample is designed for Jet provider. You may need to modify GetColumnTypeDefinition() for other providers that have different data type names.

Keywords: kbbug kbfix KB239889