SQL Server Plans : difference between Index Scan / Index Seek

前端 未结 6 1901
攒了一身酷
攒了一身酷 2020-12-04 09:20

In a SQL Server Execution plan what is the difference between an Index Scan and an Index Seek

I\'m on SQL Server 2005.

6条回答
  •  Happy的楠姐
    2020-12-04 09:52

    An Index Scan happens when the index definition cannot find on a single row to satisfy search predicates. In this case SQL Server has to scan multiple pages to find a range of rows which satisfy the search predicates.

    In the case of a Index Seek, SQL Server finds a single row matching search predicates using index definition.

    Index Seeks are better and more effective.

提交回复
热议问题