I created a simple table in SQL Server:
MemberId INT PRIMARY KEY Identity
Name NVARCHAR(100) NULL
Description NVARCHAR(250) NULL
The only index that was added was a clustered index when I created MemberId as a primary key. I didn't add an index to Name or Description.
I added about 30,000 rows of test data to the table and did the following query:
SELECT * FROM Members WHERE Name = 'Foo'
The execution plan said the following:
Clustered Index Scan - cost 100%
How is this a clustered index scan? I'm not predicating on the clustered index. I thought this would be more of a table scan. Can someone explain this to me? What exactly would cause a table scan if this does not?