Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexes and Foreign Key Constraints
Message
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
00449173
Message ID:
00449180
Views:
10
>I am a little mixed up on constraints and indexes. Are indexes automatically created when you create a primary key or unique consrtaint, but not when you create a foreign key constraint? This seems a bit odd.

When you add a Foreign key contraint, the index on the Parent table must already exist. It doesn't have to exist on the child. It is created with the Alter Table or Create Table syntax.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform