PRB: Can't Access Stored Procedures in Visual FoxPro Database

Last reviewed: September 9, 1996
Article ID: Q148865
The information in this article applies to:
  • Microsoft Visual FoxPro ODBC Driver, version 1.0

SYMPTOMS

From MSQuery version 2.0, if you connect to a Visual FoxPro database that contains stored procedures, the Procedures button of the Execute SQL dialog box is disabled. In particular, if you set up a data source to the Tastrade database, the Procedures button is disabled although the Tastrade database contains stored procedures. You were expecting this button to be enabled because the database contains stored procedures.

CAUSE

The Procedure button in the Execute SQL dialog of MSQuery calls the SQLprocedures function. This function is not supported by the Visual FoxPro ODBC driver because Visual FoxPro stored procedures cannot be executed outside of a trigger. Therefore, the Procedures button in the Execute SQL dialog box is disabled.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Set up a data source to the Tastrade database by following these steps:

    a. Start the OBDC Driver Manager. b. Click the Add button to add a driver. c. In the list of drivers, select the Microsoft Visual FoxPro Driver. d. In the data source dialog box, click the Visual FoxPro Database

          (.dbc) as the database type.
    
    e. Select Tastrade.dbc that is located in the Samples\Mainsamp\Data

          directory.
    

  2. Start MSQuery 2.0.

  3. On the File menu, click Execute SQL.

  4. Click the Data Source button, and select the Tastrade data source.

The Procedures button in the Execute SQL dialog box is disabled.


Additional reference words: 1.00 VFoxWin 3.00 3.00b
KBCategory: kbinterop kbprb
KBSubcategory: FxinteropGeneral



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