BUG: Incorrect TABLE_TYPE Is Returned for Excel Worksheets (300948)
The information in this article applies to:
- Microsoft Excel 2000 Service Release 1 (SR-1)
- Microsoft Excel 2000
- Microsoft OLE DB Provider for Jet 4.0
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.1 SP1
- Microsoft Data Access Components 2.1 SP2
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.5 SP1
- Microsoft Data Access Components 2.5 SP2
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.6 SP1
- Microsoft Excel 2002
This article was previously published under Q300948 SYMPTOMS
If you run the OpenSchema(adSchemaTables) method of an ActiveX Data Objects (ADO) Connection object against an Excel 2000 database/workbook (.xls file) with the Microsoft OLE DB Provider for Jet 4.0, the TABLE_TYPE for Worksheets in the workbook return as "TABLE" instead of as "SYSTEM TABLE". The expected behavior is to that the TABLE_TYPE for User-defined named ranges return as "TABLE", and the TABLE_TYPE for Worksheets in the .xls file return as "SYSTEM TABLE".
As a result, applications that use ADO to retrieve table metadata information that is required to identify the user-defined named ranges in an Excel workbook cannot distinguish between named ranges and worksheets when they use OLE DB Provider for Jet 4.0.
RESOLUTION
To work around this problem, use the Excel ODBC driver to retrieve metadata information that is required to distinguish User-defined Ranges from Worksheets in the workbook. The Excel ODBC driver correctly returns the TABLE_TYPE for Worksheets as "SYSTEM TABLE".
STATUSMicrosoft has confirmed that this is a bug in Microsoft OLE DB Provider for Jet, version 4.0.
Modification Type: | Major | Last Reviewed: | 12/3/2003 |
---|
Keywords: | kbbug kbpending KB300948 |
---|
|