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

This article was previously published under Q239889
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 2340 (plato7x)
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.
The preceding error occurs because the code does not address the case for the adBigInt datatype in the GetColumnTypeDefinition function.
Insert an additional case in the SELECT statement in GetColumnTypeDefinition():
Case adBigInt            GetColumnTypeDefinition = " BIGINT "				
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.
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.

Article ID: 239889 - Last Review: 02/28/2014 00:28:11 - Revision: 4.1

Microsoft SQL Server OLAP Services

  • kbnosurvey kbarchive kbbug kbfix KB239889