Bde.DBTables.TBDEDataSet.DisableConstraints
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Bde.DBTables.pas Bde.DBTables.hpp
| |
Unit: Bde.DBTables | |
Parent: TBDEDataSet |
Delphi
procedure DisableConstraints;
C++
void __fastcall DisableConstraints();
Description
Disables application of server constraints on the dataset.
Call DisableConstraints to prevent, on a temporary basis, application of server constraints replicated to the dataset. For example, when an application iterates through a dataset, it may improve performance to disable constraints temporarily.
Note: Calling DisableConstraints increments a reference count. As long as this reference count is greater than zero, constraints are disabled for the dataset. To prevent accidental disabling of constraints, always group a call to DisableConstraints with a call to EnableConstraints.