Reply to Re: Northwind - execution plan bug? Why Index Seek and no Bookmark Lookup?

Your name:

Reply:


Posted by Dan Guzman on 12/10/06 13:24

To add to Erland's response, an index with leaf nodes that contain all
columns needed by a query is a 'covering' index. Besides the clustered
index key columns, one can add non -key columns in a SQL 2005 non-clustered
by specifying an INCLUDE column list in order to cover particular queries.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"serge" <sergea@nospam.ehmail.com> wrote in message
news:9nNeh.60443$4A.1105486@wagner.videotron.net...
> If you display the execution plan and run the following:
>
> SET STATISTICS IO ON
> go
>
> SELECT ProductID, SupplierID
> FROM Products
> WHERE SupplierID = 1
>
>
> I don't understand how come there is no
> Bookmark Lookup operation happening to get the
> ProductID?
>
> I only see an Index Seek happening on SupplierID.
> There is no composite index SupplierID + ProductID
> so what am I not understanding here?
>
> Thank you
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация