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

Article translations Article translations
Article ID: 239889 - View products that this article applies to.
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)
Expand all | Collapse all

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.

Properties

Article ID: 239889 - Last Review: February 28, 2014 - Revision: 4.1
APPLIES TO
  • Microsoft SQL Server OLAP Services
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB239889

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com