BUG: SQLStatistics Does Not Return Unique Index InformationLast reviewed: December 17, 1996Article ID: Q157617 |
The information in this article applies to:
SYMPTOMSWhen an ODBC application uses a SQLStatistics function call to retrieve the index information associated with the views, the SQLStatistics function does not return any index information for the views. When Microsoft Access database users create link tables to SQL Server tables using SQL Server data sources, the SQL Server ODBC Driver uses SQLStatistics to automatically retrieve the index information and set up the link tables, without prompting the users to select a unique index for the tables. Microsoft Access database users may be prompted to select the unique index record identifier when they create link tables to SQL Server views, because SQLStatistics does not return any information associated with the views.
CAUSESQLStatistic uses the Microsoft SQL Server stored procedure sp_statistics to retrieve the unique index information, and sp_statistics does not return unique index information for views.
STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5, Open Database Connectivity 2.5, and ODBC Driver version 2.65. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
KBCategory: kbusage kbprg kbinterop kbbug2.50 kbbug2.65 kbbug6.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |