RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetProvider.Constraints Property

Controls whether database constraints are passed to the client so that it can check them locally.

Pascal
property Constraints: Boolean;
C++
__property Boolean Constraints;

Set Constraints to specify whether data constraints defined for the provider's associated dataset are sent along with the metadata for the dataset. Sending constraints allows client datasets to check for constraint violations locally, so that updates are less likely to fail when sent back to the database server. 

When Constraints is true, constraints are sent. To prevent the provider from sending constraint information, set Constraints to false.

Note: Before constraints can be sent to client applications, they must be imported to the data dictionary on the application server. Use SQL explorer to import constraints to the data dictionary.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!