SQL Server automatically creates an index on:
Answer: C
Correct answer: both primary and foreign keys.
SQL Server creates a unique index on the primary key automatically, since it must enforce uniqueness, and it indexes foreign keys as well. Both are worth having: the primary key index enforces entity integrity, and the foreign key index makes the joins and the referential integrity checks efficient.
Please log in or register to report this question.