When adding a primary key, a unique index is added. Whether this addition is a new cluster of a new index depends on whether it was indicated that it was nonclustered or not. If when adding a primary key constraint you do not indicate that it is clustered or non-clustered, it will be clustered if the cluster constraint or index does not already exist in the table, otherwise it will be non-clustered.
When you add a foreign key, the index is not created automatically.
When dropping a constraint, any indexes created as a result of creating the constraint will be deleted. However, if you try to remove a unique or primary key constraint, and there are foreign key constraints that reference it, you will receive an error message.
Indexes created as a result of creating a constraint cannot be deleted using DROP INDEX.
Thomas
source share