See Also
When you create a relationship between tables, the referenced field in the primary table must have a unique index. See the CdbIndex object and Primary property topics for more details on how to do this.