PRB: Connecting to Oracle Server Fails with Several Files Open

Last reviewed: May 7, 1996
Article ID: Q150549
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

When using the 16-bit Oracle 7 ODBC driver (Sqora7.dll version 1.11.0000) that ships with Visual FoxPro to connect to an Oracle 7 server, the connection fails with the following error message:

   Connectivity Error [Microsoft][ODBC DLL] Driver's SQLSetConnectOption
   failed

CAUSE

This error occurs because there are a lot of files (programs, projects, tables, and so on) open in Visual FoxPro when you attempt to establish a connection to the Oracle server.

WORKAROUND

Close some of the files prior to making the connection to the Oracle server. This problem does not occur in the 32-bit Oracle 7 driver provided by Visigenic Corporation.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open several program files in Visual FoxPro. The actual number may vary, but typically between eight and ten files reproduces the error.

  2. Type the following command in the Command window:

    ?SQLConnect()

  3. Choose the ODBC data source for the Oracle server, and click OK.

    A -1 is displayed on the Visual FoxPro desktop, indicating that the connection failed. To see the actual error message, type the following commands in the Command window:

    ?AError(aerrs) DISPLAY MEMORY LIKE aerrs

The text of the error message is displayed on the Visual FoxPro desktop.


Additional reference words: 3.00 3.00b VFoxWin
KBCategory: kb3rdparty kbprb
KBSubcategory: FxinteropDbase



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: May 7, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.