PRB: Cannot Access VFP Parameterized Views RemotelyLast reviewed: September 9, 1996Article ID: Q148895 |
The information in this article applies to:
SYMPTOMSWhen you open a Visual FoxPro database (.DBC) using the Visual FoxPro ODBC driver, it does not display remote or parameterized views. In particular, if you open a Visual FoxPro .DBC from Microsoft Access 7.0, some views that belong to the database are not listed in the Link Tables dialog.
CAUSEThe data sets that are not listed are parameterized views and remote views. The SQLTables() ODBC function of the Visual FoxPro ODBC driver returns the list of table names stored in a specific data source. The result set returned by this funcion does not include remote or parameterized views contained in a .DBC. Visual FoxPro local parameterized views require that a variable be initialized and passed to the view before it is opened. If this variable is not initialized, an error occurs. The ODBC driver does not display a dialog that would allow you to make a variable assignment to initialize the parameter. Therefore, to prevent an error, parameterized views are not accessible through native SQL Pass Through functions and the interface. You can, however, open a parameterized view from a trigger by initializing the parameter in the trigger code before opening the view.
STATUSThis behavior is by design.
MORE INFORMATIONFor more information about the SQLTables() ODBC function, refer to the Microsoft "ODBC 2.0 Programmer's Reference and SDK Guide," pages 511-515.
Steps to Reproduce Behavior
|
Additional reference words: 1.00 vFoxwin 3.00 3.00b
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |