Administration | Maintenance | Apply Referential Integrity command
Summary |
Referential Integrity can be either applied or removed from a PayGlobal database. Referential Integrity ensures all references between database tables are valid when records are created or updated. Note: You must turn off referential integrity before you upgrade PayGlobal. Remember to turn it back on again after the upgrade is complete. |
Setup |
Important: PayGlobal will not apply or remove referential integrity successfully while a user is editing a record. When you double-click Apply Referential Integrity, the Referential Integrity Setup form appears. This form indicates whether Referential Integrity is currently turned on or off. You have the following options: Add referential integrity to database:Use this option to turn Referential Integrity on. You can also:
Remove referential integrity from the database:Use this option to turn Referential Integrity off. Verbose output (report successes):When this checkbox is ticked, the log file shows successful and unsuccessful actions. When this checkbox is not ticked, the log file only shows unsuccessful actions. Important: If you want to use the Manage Tables function, then you must ensure Referential Integrity is removed. If Referential Integrity is turned on, then it will not allow records that are referenced to be removed. After running the command to either apply or remove Referential Integrity, you will be returned to the Referential Integrity Setup window. Click the Close button or press Esc to continue. |
|
|
Advantages of turning Referential Integrity ON |
Referential Integrity ensures that data is consistent across parent and child tables. It prevents the following scenarios:
The result is that your data is more consistent. PayGlobal also provides protection, for example, by limiting pick list selections. At database level Referential Integrity provides extra protection against the following:
|
Disadvantages of turning Referential Integrity ON |
|
Definition |
Referential integrity is the concept of maintaining foreign keys. A 'foreign key' exists when the primary key of a parent entity exists in a child entity. A foreign key requires that values must be present in the parent entity before like values may be inserted in the child entity. |
See also |
For more information about Referential Integrity, go to the SQL Team website and read the article titled Database Design and Modeling Fundamentals. |