HOWTO: Calling Driver Specific Functions in a Remote ViewLast reviewed: June 3, 1997Article ID: Q169500 |
The information in this article applies to:
SUMMARYCalling driver-specific functions in a remote view requires special syntax when used in the filter expression of a remote view.
MORE INFORMATIONWhen calling any driver-specific functions in the filter of a remote view, you must use the following syntax:
{fn FUNCTIONNAME()}If the correct syntax is not used, then the following error is produced when returning from the expression builder and the expression is not returned:
Invalid Subscript ReferenceNOTE: In Microsoft Visual FoxPro 5.0(a), driver-specific functions are included in the Functions drop-downs and the correct syntax is pasted into the Expression edit box (for example, '{fn FUNCTIONNAME()}'). In Microsoft Visual FoxPro 3.0b, the driver-specific functions return the incorrect syntax. The Expression Builder omits "{fn }" from the driver specific-functions. ExampleThis example requires access to the Microsoft SQL Server sample database called "Pubs." Modify the following code to point to your Microsoft SQL Server, with appropriate user ID (UID) and password (PWD) specified:
CREATE DATABASE TESTSQL CREATE CONNECTION TESTCONN CONNSTRING ; "Driver=SQL Server;Server=MySQLServer;UID=sa;PWD=;DATABASE=PUBS" CREATE SQL VIEW TESTVIEW REMOTE CONNECTION TESTCONNRunning the above code will do the following:
|
Keywords : FxinteropOdbc vfoxwin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |