Key Type Constants (SQLDMO_KEY_TYPE)
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
Key type constants specify the attributes of a Microsoft SQL Server constraint that implements a primary or foreign key on table data.
Constant |
Value |
Description |
|---|---|---|
SQLDMOKey_Foreign |
3 |
The key references, or is used to create, a SQL Server FOREIGN KEY constraint. |
SQLDMOKey_Primary |
1 |
The key references, or is used to create, a SQL Server PRIMARY KEY constraint. |
SQLDMOKey_Unique |
2 |
The key references a SQL Server UNIQUE constraint on a column not allowing NULL. |
SQLDMOKey_Unknown |
0 |
The value is not valid. |