RAD Studio (Common)
ContentsIndex
PreviousUpNext
Unique Constraint

Use this dialog box to select the dataset columns you want included in your constraint, which means these columns will be forced to contain only unique values. You can also set one or more columns as your primary key.

Item 
Description 
Name  
Specifies the name of the constraint.  
Columns  
Check each column you want included in the constraint. If you indicate a nonunique column as unique, you may generate a runtime errror.  
Primary key  
Selecting this option sets the checked columns in your constraint as the primary key for the current DataTable. If you set a combination of columns, some of which contain duplicates or null values, you may receive a design-time error and a runtime error. However, if you receive a design-time error, the constraint may still be defined as you indicated, even if it is incorrect.  
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!