PRB: Failing SQLExec() Breaks Connection with Oracle Server

Last reviewed: April 22, 1997
Article ID: Q167239
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

When using the Oracle 7.3 ODBC Driver (version 1.15.0301) provided by Oracle Corporation to connect to an Oracle server, if an SQLExec() call encounters an error, the connection to the server is no longer valid. Issuing subsequent SQLExec() calls after a previous command has failed results in the following error:

   Connectivity error. [Oracle][ODBC Oracle Driver]Operation cancelled.

RESOLUTION

This problem occurs only with the Oracle 7.3 ODBC driver provided by Oracle Corporation. Using the Visigenic Oracle ODBC Driver (version 2.00.0000) or the Microsoft Oracle ODBC Driver (version 2.00.006325) works correctly. This problem does not occur in Visual FoxPro version 5.0 or 5.0a.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create an ODBC data source using the Oracle 7.3 ODBC driver.

  2. Connect to this data source using the SQLConnect() function:

          Handle=SQLConnect(<Oracle DSN>,<user id>,<password>)
    

  3. Send an invalid SQL statement to the Oracle server:

          =SQLExec(Handle,"This is an invalid SQL command")
    

  4. Send a valid SQL statement to the Oracle server.

The SQLExec function returns a -1 indicating an error.


Keywords : FxinteropOdbc kbinterop vfoxwin
Version : 3.0 3.0b
Platform : WINDOWS
Issue type : kbprb


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