Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: "Degree of Derived Table" Error When Using Table Name in Select List

View products that this article applies to.

This article was previously published under Q228943

↑ Back to the top


When attempting to issue a SQLSetPos() (UPDATE a record) on a SELECT statement that uses table names in the field/column list, you will receive the following error message:
[Microsoft][ODBC driver for Oracle]Degree of derived table does not match column list.
A simple SELECT statement similar to the following causes the error:
SELECT customer.customer_ID, FROM customer
Also, using alias names for the table, as in the following, also causes the error:
SELECT FROM customer a

↑ Back to the top


This is a bug in the statement parsing routine for the Microsoft Oracle ODBC driver.

↑ Back to the top


A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The QFE is for the MDAC 2.1 GA stack. The English version of this fix should have the following file attributes or later:
   Date      Time    Version      Size    File name     Platform
   4/10/99           02.573.4104  138KB   msorcl32.dll


NOTE: If you are installing this QFE onto a Windows 95 computer, or a computer with the original release of Windows 98, please read the information included in Migrate.exe, which is included in the download.


To work around this problem, use coded SQL UPDATE statements to send your data to the database if your SELECT statement contains table names in the field list.

↑ Back to the top


Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This problem has been fixed in Microsoft ActiveX Data Objects versions 2.1 Service Pack 2 and later.

↑ Back to the top

More information

SQLSetPos() ODBC API is used by several different Microsoft technologies such as ADO, RDO, MFC ODBC, and straight ODBC APIs. You may see the above error message if you are updating data via these database API or object technologies.

↑ Back to the top

Keywords: kbhotfixserver, kbbug, kbdatabase, kbdriver, kbfix, kbmdac210sp2fix, kboracle, kbqfe, kbqfe, KB228943

↑ Back to the top

Article Info
Article ID : 228943
Revision : 6
Created on : 10/19/2005
Published on : 10/19/2005
Exists online : False
Views : 417