Microsoft KB Archive/124363

= BUG: CREATE TABLE and CREATE INDEX Cause Error 42000 =

Article ID: 124363

Article Last Modified on 7/27/2001

-

APPLIES TO


 * Microsoft Open Database Connectivity 2.0

-



This article was previously published under Q124363



BUG# QJET: 1824 (2.00.2317)



SYMPTOMS
Using the Microsoft Access ODBC driver, when the CREATE TABLE or CREATE INDEX commands are executed with table, column, or index names that contain words (such as, proc or view) anywhere in their name, an error is generated with SQLSTATE=42000:

Syntax error or access violation.



STATUS
Microsoft has confirmed this to be a problem in ODBC Access Driver version 2.00.2317. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

This problem does not occur on the 3.40.2204 version of the driver. However, you still can not create an object whose name is exactly 'proc' or 'view' (note: view is, after all, an ODBC reserved word).



MORE INFORMATION
For example, the following statements cause the error: create table review(test ) create table viewing(test ) create table 'reviewing'(test ) create table ('reviewing' ) create index review on Calling SQLError returns:

SQLSTATE=42000,

szErrorMsg=[Microsoft][ODBC Microsoft Access 2.0 driver]Syntax error or access violation.

You will also get the above error for other identifiers containing the word "proc" anywhere in their name, such as myproc, processing, process, and so forth.

NOTE: If such a table or index already exists in the Microsoft Access .MDB file, then SELECT, DELETE, INSERT, and UPDATE queries will work fine with these identifiers.

Additional query words: 2.00.2317 3.40 mfc visual C++ MSVC Windows NT

Keywords: kbbug KB124363

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.