XL: Oracle IM006 Error Using SQLOPEN Function

Last reviewed: February 2, 1998
Article ID: Q124611
5.00 5.00c 7.00 | 5.00 5.00c
WINDOWS         | MACINTOSH
kbprg kbtool

The information in this article applies to:

  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, version 7.0

SYMPTOMS

When you use the SQLOpen function in a Visual Basic procedure in Microsoft Excel, you may receive the following SQL error message:

   IM006 [Microsoft][ODBC.DLL] SQLSetConnectOption Failed

CAUSE

This error occurs when you run the procedure that contains the SQLOpen function while three workbooks are open in Microsoft Excel. The problem occurs if the SQLOpen function establishes a connection to an Oracle 6 or Oracle 7 data source.

Note that this problem also occurs in Microsoft Excel version 5.0c while four workbooks are open. Open workbooks include add-ins, hidden files, PERSONAL.XLS, XL5GALRY.XLS, and any other files opened from the XLSTART directory.

WORKAROUND

To avoid this error message, close any additional open workbooks, and delete any unneeded worksheets within the workbook that contains the procedure before you run the procedure.

Additionally, you may need to close other applications that are running, and take standard troubleshooting steps to make more memory available.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For more information about the SQLOpen Function, choose the Search button in the Visual Basic Reference and type:

   SQLOpen Function


KBCategory: kbprg kbtool
KBSubcategory:

Additional reference words: 5.00 5.00c xlodbc.xla msquery
Keywords : kbprg kbtool
Version : WINDOWS:5.0,5.0c,7.0; MACINTOSH:5.0,5.0c


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.