February 3, 2010 at 4:55 am
Dear All,
I have read that if the table is small SQL will do a index scan and not index seek.
I have a 'Sales' table which has hardly 15 rows and a clustered index defined on 'SaleId' column.
I executed a simple select query like
SELECT * FROM Sales WHERE SaleID = 7 I checke
When I checked the actual execution plan, I found that it's doing an index seek and not an index scan.
Have I undertood the concept of scan & seek it wrongly.?
Can anyone explain please.
Thanks in advance.
February 3, 2010 at 5:23 am
http://sqlinthewild.co.za/index.php/2007/11/15/execution-plan-operations-scans-and-seeks/
http://sqlinthewild.co.za/index.php/2009/01/09/seek-or-scan/
http://sqlinthewild.co.za/index.php/2009/07/29/is-a-scan-a-bad-thing/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply