PRB: Changes to SQL Remote View Aren't SavedID: Q130239 3.00 WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSAfter updating data contained in a remote view, the updates may not appear in the source table.
CAUSEThis is by design. Updates will not be sent to the source unless you specify that records should be updated.
RESOLUTIONIf you are creating the view through the View Designer, click the Update Criteria Tab, and make sure you have selected the SEND SQL UPDATES check box. If you are creating the view in a program, use the DBSETPROP() function to set the SendUpdates and the UpdateType options. The following code example allows data changed in the view named vCustomer to be updated. Because the UpdateType is being reset to "2," updates occur by first deleting the existing record, and then adding a new record:
STATUSThis behavior is by design.
MORE INFORMATIONIf you want to update data contained in a remote view, execute these steps: 1. Define a primary key for each server table (mymain). This is done at the 2. In the View Designer Update Criteria Tab, select the Send SQL Updates
3. In the View Designer Update Criteria Tab, specify which fields you
REFERENCESFor more information, please see the Visual FoxPro "Language Reference" or Help file for information on DBSETPROP() and the View Designer Update Criteria Tab. Additional reference words: 3.00 VFoxWin KBCategory: kbprg kbprb KBSubcategory: FxprgSql
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |