PRB: INSERT Command Fails with Buffering and Integrity RulesID: Q130301 3.00 WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSThe following error occurs when you issue an INSERT command on a table in which fields have validation rules or when table or row buffering is enabled:
CAUSEThe INSERT command is included with Visual FoxPro for backward compatibility. It cannot be used on a table in a database that has table or row buffering enabled, or on a table with referential integrity rules such as triggers, primary keys, or candidate keys.
WORKAROUNDTo use the INSERT command on tables that do not have referential integrity rules, buffering can be disabled with the CURSORSETPROP() function. The following code may be executed from the Command window to disable row and table buffering:
If a table has referential integrity rules the INSERT SQL command or the
APPEND command may be used instead of the INSERT command.
STATUSThis behavior is by design. Additional reference words: 3.00 VFoxWin KBCategory: kbprg kbprb KBSubcategory: FxprgTable
|
Last Reviewed: May 1, 1996 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |