"SELECT DISTINCT" Statement with Oracle Provider Causes "Invalid Column Name" Errors

ID: Q238164


The information in this article applies to:
  • Microsoft OLE DB Provider for Oracle, version 2.1
  • Microsoft Data Access Components version 2.1 SP2


SYMPTOMS

When you are using Microsoft OLE DB provider for Oracle (Msdaora.dll), a SELECT statement containing the DISTINCT keyword causes the BASECOLUMNNAME property of the first field in the recordset to be named "DISTINCT" instead of its real name. If you attempt to update the recordset, the following error is returned:

Run-time error '-2147217900' (80040e14)' ORA-00904: invalid column name
This problem does not occur with Microsoft ODBC Driver for Oracle.


RESOLUTION

A supported fix that corrects this problem is now available from Microsoft, but it has not been fully regression tested and should be applied only to systems experiencing this specific problem. If you are not severely affected by this specific problem, Microsoft recommends that you wait for the next Microsoft Data Access Components service pack that contains this fix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information on support costs, please go to the following address on the World Wide Web:

http://www.microsoft.com/support/supportnet/overview/overview.asp
The English version of this fix should have the following file attributes or later:

   Date      Time    Version      Size    File Name     Platform
   -------------------------------------------------------------
   7/22/99   02.12.4322          184KB    Msdaora.dll

 


WORKAROUND

Use Microsoft ODBC Driver for Oracle instead of the Oracle native provider.


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

Manual Installation

  1. Close or stop any applications or services that are using Msdaora.dll, including Internet Information Server (IIS), Microsoft Transaction Server (MTS), and any ADO or OLE DB applications.


  2. Download the hotfix version of Msdaora.dll into a temporary directory.


  3. Locate and rename the current version of Msdaora.dll, which should be in the \Program Files\Common files\System\ole db folder.


  4. Copy the hotfix version of Msdaora.dll into the same location, then and restart your services and applications.


Additional query words: distinct oracle provider msdaora.dll invalid column name

Keywords : kbDatabase kbOLEDB kbOracle kbProvider kbGrpVCDB kbGrpMDAC kbMDAC210SP2bug
Version : WINDOWS:2.1,2.1 SP2
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: November 20, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.