I have the following table structure:
When I set the Id column as primary key it automatically created an index named PK_TestIndexTbl (Clustered) in the Indexes folder. My table contains about 1,300,000 records and when I execute the following query it take about 5 seconds:
SELECT [Id], [Name], [Family], [Score]
FROM [TestIndexTbl]
But when I remove the primary key from table and of course it deletes the index I expect that my query takes more than 5 seconds because I haven't any index now. But it has no difference and I get the result in 5 seconds as before. Why?
My Question: How can I see the Index usage? What query should I run to see the difference with or without index here?
Also the Where has no effect. The following query is executed less than one second with or without index:
SELECT [Id], [Name], [Family], [Score]
FROM [TestIndexTbl]
where Id = 602145
