what is the difference between clustered index scan and clustered index seek?
A clustered index scan is a table scan on a table that has a clustered index. By default a primary key is a clustered index, so basically a table that has a primary key.
A clustered index scan occurs when the predicate contains columns other than the primary key (and there is no other index available to satisfy the predicate).
A clustered index seek (and non-clustered index seek) occurs when the predicate contains one or more columns in the index. This allows the query processor to lookup the range of rows based on the index, without needing to scan.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With