Microsoft KB Archive/116010

= Error: Opening Query Failed Accessing Oracle =

Article ID: 116010

Article Last Modified on 8/15/2003

-

APPLIES TO


 * Microsoft Excel 95a
 * Microsoft Excel 5.0c
 * Microsoft Query 2000

-



This article was previously published under Q116010





SYMPTOMS
When you choose Get External Data from the Data menu to get data from an Oracle database, you may receive following error message in Microsoft Excel:

Opening Query Failed



CAUSE
This error message may occur in Microsoft Excel when you attempt to get data from an Oracle database, and you include any of the following operators in the SQL Statement that requests the data:

Minus

Intersect

Union

Substring



WORKAROUND
Although there is no direct workaround for this problem, you may be able to get the desired results with joins rather than using the operators mentioned above (joins behave similarly to the SQL operators that generate the error message).

Steps to Reproduce Behavior
 In Microsoft Excel, choose Get External Data from the Data menu.

This command will start Microsoft Query. In Microsoft Query, choose New Query from the File menu. In the Select Data Source dialog box, select the Oracle data source, and choose the Close button to close the New Query dialog box. Open a saved .QRY file that contains any of the following operators:

Minus

Intersect

Union

Substring.

 From the File menu, choose Return Data To Microsoft Excel. In the Microsoft Excel spreadsheet, do either of the following: <ul> Double-click the returned data

-or-</li> With the cursor in the result set, choose Get External Data from the Data menu, and then choose Edit Query.</li></ul> </li></ol>

The following error message will appear:

Opening Query Failed

Additional query words: 5.00a 5.00c 7.00a back end backend retrieve XL

Keywords: KB116010

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.