Answer Posted / sumit
Index Scan is nothing but scanning on the data pages from
the first page to the last page. If there is an index on a
table, and if the query is touching a larger amount of
data, which means the query is retrieving more than 50
percent or 90 percent of the data, and then optimizer would
just scan all the data pages to retrieve the data rows. If
there is no index, then you might see a Table Scan (Index
Scan) in the execution plan.
Index seeks are generally preferred for the highly
selective queries. What that means is that the query is
just requesting a fewer number of rows or just retrieving
the other 10 (some documents says 15 percent) of the rows
of the table.
In Index Scan the cost is proportional to the total number
of rows in the table. Thus, a scan is an efficient strategy
if the table is small or if most of the rows qualify for
the predicate.
In Index Seek the cost is proportional to the number of
qualifying rows and pages rather than to the total number
of rows in the table.
| Is This Answer Correct ? | 11 Yes | 2 No |
Post New Answer View All Answers
What is a field name?
Why should you use or avoid select * statements?
When we should use and scope of @@identity?
How to loop through the result set with @@fetch_status?
What happens when converting big values to integers?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
How can we use ConnectorJ JDBC Driver with MS SQL?
What are extended events in sql server?
How to add more data to the testing table in ms sql server?
What is default constraint?
How to create hyperlink from returned sql query ?
What are the recovery models in sql server 2000?
What are the different types of data sources in ssrs?
what is the difference between openrowset and openquery?
List all the types of user-defined functions?