The information in this article applies to:
This article applies only to a Microsoft Access database (.mdb). Moderate: Requires basic macro, coding, and interoperability skills. SYMPTOMSWhen you link a table from an ODBC data source, such as Microsoft SQL Server or ORACLE, and that table contains more than one unique index, Microsoft Access may select the wrong index as the primary key. CAUSE
When you link a table from an ODBC data source, the Microsoft Jet database
engine makes a call to SQLStatistics, an ODBC API function used to identify the first unique index to select as the primary key. SQLStatistics returns index information in the following order: Clustered, Hashed, Non-clustered, or other indexes. In addition, each index is listed alphabetically within each group. RESOLUTION
To ensure that the Jet database engine properly selects the desired index
as the primary key when linking the table from your ODBC backend, you can
rename the index so that it appears first alphabetically. MORE INFORMATIONSteps to Reproduce Behavior
REFERENCESThe third-party products discussed here are manufactured by vendors
independent of Microsoft; we make no warranty, implied or otherwise,
regarding these products' performance or reliability. Additional query words: indexes
Keywords : kb3rdparty kbdta OdbcProb |
Last Reviewed: May 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |