The information in this article applies to:
SUMMARYYou can create an updateable view cursor using SQL Passthrough by setting properties with the CURSORSETPROP() function. MORE INFORMATION
Remote views provide the most common and easiest way to gain access to and
update remote data. You can also use SQL passthrough technology to send SQL
statements directly to a server. By default, a SQL passthrough query always
returns a non-updateable snapshot of remote data, which is stored in an
active view cursor. You can make the cursor updateable by setting
properties with the CURSORSETPROP() function. An updateable remote view, in
contrast, usually does not require that you set properties before you can
update remote data.
The following program is an example of how to create an updateable view Cursor. Sample Code
Any changes made to the data in the Browse window will update the table on
the remote server.
NOTE: If you are unsure of how to set the above properties you can create a
remote view. Please refer to the REFERENCES section for information on
creating a remote view.
When you run the view, use the CURSORGETPROP() function in the Debug Window to determine what the five properties are set to. For example, put CURSORGETPROP("UpdateNameList") in the Debug window to see how the property is set in the CURSORSETPROP() function. REFERENCESFor more information about creating an updateable remote view, please see the following article in the Microsoft Knowledge Base: Q130413 How to Create an Updatable Cursor (View) to Update Table Additional query words: VFoxMac VFoxWin pass-through
Keywords : kbVFp300 kbVFp600 FxprgSql |
Last Reviewed: August 5, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |