I have table Table1 with primary key Id, field Name and field with index OtherIdCREATE TABLE [dbo].[Table1] ( [Id] UNIQUEIDENTIFIER NOT NULL, [Name] [varchar](255) NOT NULL, [OtherId] UNIQUEIDENTIFIER NOT NULL,) ON [PRIMARY]GOALTER TABLE [dbo].[Table1] WITH NOCHECK ADD CONSTRAINT [PK_Table1] PRIMARY KEY CLUSTERED ( [Id] ) ON [PRIMARY] GOCREATE NONCLUSTERED INDEX [IX_Table1_OtherId] ON [dbo].[Table1]([OtherId])GOINSERT INTO [Table1] VALUES('FAD89C30-0EA4-47D8-B5DE-514180C6178E', 'One', '96F11BBA-24AC-4F92-82D8-F65BE6BF0DCF')INSERT INTO [Table1] VALUES('E16174B5-B0EC-4F85-AF98-0342FD2E49E9', 'Two', '417AB911-1C03-42DE-B7A6-EC19C6AFA370')INSERT INTO [Table1] VALUES('6B420B24-40F7-4A25-B76E-23733910940D', 'Three', '9CF525E9-8ED0-4C98-A17F-04E9AF086AC0')
Then when I runSELECT * FROM [Table1] WHERE OtherId = '417AB911-1C03-42DE-B7A6-EC19C6AFA370'
I get in the execution plan "Clustered Index Scan"Why Oh Why? I have index on OtherId, shouldn't that make it index seek?