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)
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():
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:
254561For more information, contact your primary support provider.
(http://support.microsoft.com/kb/254561/ )INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
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.