ACC2000: How to Create a Jet CHECK Constraint (201888)
The information in this article applies to:
This article was previously published under Q201888 Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
The new SQL grammar exposed by Microsoft Jet database engine version 4.0 allows
users to specify business rules that can span more than one table. These are called
check constraints and allow users to exceed a single validation rule per table. In this
article, a procedure is provided that demonstrates creating a table with a
CHECK constraint. It also tests this constraint by attempting to add two
records, one which conforms to the constraint, and one that intentionally
violates the constraint.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB201888 |
---|
|