<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Observation &#8211; Effect of Clustered Index over Nonclustered Index</title>
	<atom:link href="http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #017 &#124; SQL Server Journey with SQL Authority</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-426024</link>
		<dc:creator><![CDATA[SQL SERVER &#8211; Weekly Series &#8211; Memory Lane &#8211; #017 &#124; SQL Server Journey with SQL Authority]]></dc:creator>
		<pubDate>Sat, 23 Feb 2013 01:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-426024</guid>
		<description><![CDATA[[...] Observation – Effect of Clustered Index over Nonclustered Index In our example we have one query which is not using any index. On the same table there is already non-clustered index created, which is also not being used. Now when we created clustered index on the same table, our query suddenly started to use a non-clustered index which was so far it is not using. The interesting part of this is that the query is using non-clustered index when a clustered index is created on the same. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Observation – Effect of Clustered Index over Nonclustered Index In our example we have one query which is not using any index. On the same table there is already non-clustered index created, which is also not being used. Now when we created clustered index on the same table, our query suddenly started to use a non-clustered index which was so far it is not using. The interesting part of this is that the query is using non-clustered index when a clustered index is created on the same. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahesh</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-359190</link>
		<dc:creator><![CDATA[Mahesh]]></dc:creator>
		<pubDate>Fri, 12 Oct 2012 14:15:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-359190</guid>
		<description><![CDATA[Hi Pinal,

A quick question.

Creating a Clustered index after the non-clustered index, is it not necessary to rebuild the non-clustered index(es)?

-- Mahesh]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>A quick question.</p>
<p>Creating a Clustered index after the non-clustered index, is it not necessary to rebuild the non-clustered index(es)?</p>
<p>&#8211; Mahesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khalid Mehmood</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-355762</link>
		<dc:creator><![CDATA[Khalid Mehmood]]></dc:creator>
		<pubDate>Thu, 04 Oct 2012 06:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-355762</guid>
		<description><![CDATA[Thanks Pinal.

I have a query here. I have a big table having more than 300,000,000 rows. 
This table is Partitioned on a date column.
It has a clustered index and a non clustered index. Both indexes have same columns.

Is this a good approach. Kindly suggest.]]></description>
		<content:encoded><![CDATA[<p>Thanks Pinal.</p>
<p>I have a query here. I have a big table having more than 300,000,000 rows.<br />
This table is Partitioned on a date column.<br />
It has a clustered index and a non clustered index. Both indexes have same columns.</p>
<p>Is this a good approach. Kindly suggest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Girish Shinde</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-309289</link>
		<dc:creator><![CDATA[Girish Shinde]]></dc:creator>
		<pubDate>Wed, 04 Jul 2012 15:56:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-309289</guid>
		<description><![CDATA[superb explaination ....conceptually..thanks pinal...keep it up god bless u]]></description>
		<content:encoded><![CDATA[<p>superb explaination &#8230;.conceptually..thanks pinal&#8230;keep it up god bless u</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srinivas Kadiyala</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-178435</link>
		<dc:creator><![CDATA[Srinivas Kadiyala]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 16:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-178435</guid>
		<description><![CDATA[What is puzzling and interesting is how come query suddenly started to use nonclustered query when clustered index is created on table?

Query 1 should not have used index which is for second query as there is no change in that index or query1. Additionally, Query 1 is not even retrieving the column which is in nonclustered index. We created clustered index on column used in Query 1, so it should make Query 1 to use that clustered index but instead it is using nonclustered index which was already created and available to use earlier.


Explanation is quite confusing..can u re-write with some figures ?]]></description>
		<content:encoded><![CDATA[<p>What is puzzling and interesting is how come query suddenly started to use nonclustered query when clustered index is created on table?</p>
<p>Query 1 should not have used index which is for second query as there is no change in that index or query1. Additionally, Query 1 is not even retrieving the column which is in nonclustered index. We created clustered index on column used in Query 1, so it should make Query 1 to use that clustered index but instead it is using nonclustered index which was already created and available to use earlier.</p>
<p>Explanation is quite confusing..can u re-write with some figures ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-178383</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 12:55:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-178383</guid>
		<description><![CDATA[It means that the table should be stored in the PRIMARY file group]]></description>
		<content:encoded><![CDATA[<p>It means that the table should be stored in the PRIMARY file group</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srinivas Kadiyala</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-178361</link>
		<dc:creator><![CDATA[Srinivas Kadiyala]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 11:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-178361</guid>
		<description><![CDATA[USE [AdventureWorks]
GO
/* */
CREATE TABLE [dbo].[MyTable](
[ID] [int] NOT NULL,
[First] [nchar](10) NULL,
[Second] [nchar](10) NULL
) ON [PRIMARY]
GO

what is the use of the statement &quot; ON [PRIMARY] &quot; there ??]]></description>
		<content:encoded><![CDATA[<p>USE [AdventureWorks]<br />
GO<br />
/* */<br />
CREATE TABLE [dbo].[MyTable](<br />
[ID] [int] NOT NULL,<br />
[First] [nchar](10) NULL,<br />
[Second] [nchar](10) NULL<br />
) ON [PRIMARY]<br />
GO</p>
<p>what is the use of the statement &#8221; ON [PRIMARY] &#8221; there ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Database Worst Practices – New Town and New Job and New Disasters Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-147572</link>
		<dc:creator><![CDATA[SQL SERVER – Database Worst Practices – New Town and New Job and New Disasters Journey to SQLAuthority]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 01:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-147572</guid>
		<description><![CDATA[[...] Observation – Effect of Clustered Index over Nonclustered Index [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Observation – Effect of Clustered Index over Nonclustered Index [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prakash</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-133279</link>
		<dc:creator><![CDATA[prakash]]></dc:creator>
		<pubDate>Sat, 07 May 2011 06:17:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-133279</guid>
		<description><![CDATA[now i got it partially..]]></description>
		<content:encoded><![CDATA[<p>now i got it partially..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-60572</link>
		<dc:creator><![CDATA[Pinal Dave]]></dc:creator>
		<pubDate>Tue, 02 Feb 2010 19:20:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-60572</guid>
		<description><![CDATA[Hello Danny,

you can get few more details about indexes here:

http://blog.sqlauthority.com/2007/04/23/sql-server-understanding-new-index-type-of-sql-server-2005-included-column-index-along-with-clustered-index-and-non-clustered-index/

Regards,
Pinal Dave]]></description>
		<content:encoded><![CDATA[<p>Hello Danny,</p>
<p>you can get few more details about indexes here:</p>
<p><a href="http://blog.sqlauthority.com/2007/04/23/sql-server-understanding-new-index-type-of-sql-server-2005-included-column-index-along-with-clustered-index-and-non-clustered-index/" rel="nofollow">http://blog.sqlauthority.com/2007/04/23/sql-server-understanding-new-index-type-of-sql-server-2005-included-column-index-along-with-clustered-index-and-non-clustered-index/</a></p>
<p>Regards,<br />
Pinal Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denny</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-60541</link>
		<dc:creator><![CDATA[Denny]]></dc:creator>
		<pubDate>Tue, 02 Feb 2010 08:35:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-60541</guid>
		<description><![CDATA[Dear Dave,

Can you let me know as to where can i find the detailed explanation of Index and its type,also the need to create index.As your explanation is pretty much good,i would like read those topics from your website.

Regards
Denison.s]]></description>
		<content:encoded><![CDATA[<p>Dear Dave,</p>
<p>Can you let me know as to where can i find the detailed explanation of Index and its type,also the need to create index.As your explanation is pretty much good,i would like read those topics from your website.</p>
<p>Regards<br />
Denison.s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul BHargava</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-60035</link>
		<dc:creator><![CDATA[Rahul BHargava]]></dc:creator>
		<pubDate>Thu, 21 Jan 2010 12:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-60035</guid>
		<description><![CDATA[Hi Pinal ,

When I inserted 1000 rows into table and I run the above query in that case 

first query using 50% Index Seek and 50 % RID loop (i dont know what is this)..

And after creating clustered index it have same behavior as u said (100% from non clusters index seek)

Plz explore this for first case when we have many rows in table and only we have non clusterd index i .e contradicting what u said? ..

Thanks &amp; Regards
Rahul Bhargava]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal ,</p>
<p>When I inserted 1000 rows into table and I run the above query in that case </p>
<p>first query using 50% Index Seek and 50 % RID loop (i dont know what is this)..</p>
<p>And after creating clustered index it have same behavior as u said (100% from non clusters index seek)</p>
<p>Plz explore this for first case when we have many rows in table and only we have non clusterd index i .e contradicting what u said? ..</p>
<p>Thanks &amp; Regards<br />
Rahul Bhargava</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj Bhandari</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-57668</link>
		<dc:creator><![CDATA[Pankaj Bhandari]]></dc:creator>
		<pubDate>Tue, 17 Nov 2009 13:10:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-57668</guid>
		<description><![CDATA[Suppose there are 2 tables.

First table is customer table having a primary Cust_id

2nd table is order table having Cust_id as reference key.

There is no primary key in 2nd table (order)

Please suggest me that which type of index is suitable on 2nd table (order) ?]]></description>
		<content:encoded><![CDATA[<p>Suppose there are 2 tables.</p>
<p>First table is customer table having a primary Cust_id</p>
<p>2nd table is order table having Cust_id as reference key.</p>
<p>There is no primary key in 2nd table (order)</p>
<p>Please suggest me that which type of index is suitable on 2nd table (order) ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tempdb</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-56136</link>
		<dc:creator><![CDATA[tempdb]]></dc:creator>
		<pubDate>Thu, 24 Sep 2009 17:13:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-56136</guid>
		<description><![CDATA[Actually, I was surprised when I read your results. 
So, I tried myself.
when I run the EXACT script that you ran, I get Index-Seek for both the queries. Mine is SQL server 2000 Standard edition.]]></description>
		<content:encoded><![CDATA[<p>Actually, I was surprised when I read your results.<br />
So, I tried myself.<br />
when I run the EXACT script that you ran, I get Index-Seek for both the queries. Mine is SQL server 2000 Standard edition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-50917</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Mon, 13 Apr 2009 05:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-50917</guid>
		<description><![CDATA[@Jinsoo,

I was going through this video. I found this video very helpful for performance tuning like where to create which type of index to get best performance. Its a free video. I strongly recommend you to watch this video. 

http://wtv.watchtechvideos.com/topic121.html

~ IM.]]></description>
		<content:encoded><![CDATA[<p>@Jinsoo,</p>
<p>I was going through this video. I found this video very helpful for performance tuning like where to create which type of index to get best performance. Its a free video. I strongly recommend you to watch this video. </p>
<p><a href="http://wtv.watchtechvideos.com/topic121.html" rel="nofollow">http://wtv.watchtechvideos.com/topic121.html</a></p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JinSoo</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-50859</link>
		<dc:creator><![CDATA[JinSoo]]></dc:creator>
		<pubDate>Sat, 11 Apr 2009 13:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-50859</guid>
		<description><![CDATA[Hi Pinalkumar Dave
I have question .
I have table that contains 10,000 rows.
I am a little confusing.

For example
The table(z_menu) schema is as like the below
ID      int  (IDENTITY_INSERT is ON)
User_ID nvarchar
MENU_ID nvarchar

The sample data is as like the below.

1, &#039;user_a&#039;, &#039;q1211&#039;
2, &#039;user_a&#039;, &#039;a1211&#039;
3, &#039;user_a&#039;, &#039;c1232&#039;
4, &#039;user_b&#039;, &#039;c1232&#039;
5, &#039;user_b&#039;, &#039;e2312&#039;
6, &#039;user_c&#039;, &#039;s3122&#039;
7, &#039;user_c&#039;, &#039;q1211&#039;
8, &#039;user_c&#039;, &#039;c1232&#039;

I use only the query 
for example
select * from z_menu where User_ID=&#039;user_a&#039;

You emphasize &quot;clustered index key&quot;.

In this case
If so.
do i create clustered index key (id,User_ID) ?
do i create index key(User_ID) ?
what is optimal index ?

please help me.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinalkumar Dave<br />
I have question .<br />
I have table that contains 10,000 rows.<br />
I am a little confusing.</p>
<p>For example<br />
The table(z_menu) schema is as like the below<br />
ID      int  (IDENTITY_INSERT is ON)<br />
User_ID nvarchar<br />
MENU_ID nvarchar</p>
<p>The sample data is as like the below.</p>
<p>1, &#8216;user_a&#8217;, &#8216;q1211&#8242;<br />
2, &#8216;user_a&#8217;, &#8216;a1211&#8242;<br />
3, &#8216;user_a&#8217;, &#8216;c1232&#8242;<br />
4, &#8216;user_b&#8217;, &#8216;c1232&#8242;<br />
5, &#8216;user_b&#8217;, &#8216;e2312&#8242;<br />
6, &#8216;user_c&#8217;, &#8216;s3122&#8242;<br />
7, &#8216;user_c&#8217;, &#8216;q1211&#8242;<br />
8, &#8216;user_c&#8217;, &#8216;c1232&#8242;</p>
<p>I use only the query<br />
for example<br />
select * from z_menu where User_ID=&#8217;user_a&#8217;</p>
<p>You emphasize &#8220;clustered index key&#8221;.</p>
<p>In this case<br />
If so.<br />
do i create clustered index key (id,User_ID) ?<br />
do i create index key(User_ID) ?<br />
what is optimal index ?</p>
<p>please help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Holly Irick</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-47795</link>
		<dc:creator><![CDATA[Holly Irick]]></dc:creator>
		<pubDate>Sun, 01 Mar 2009 23:54:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-47795</guid>
		<description><![CDATA[I modified the table load as follows, to create 1000 rows:

/* Create Sample Table */
SET Rowcount OFF
DECLARE @cntr int
SET @cntr=0

WHILE @cntr &lt; 1000
BEGIN
INSERT INTO [dbo].[MyTable]
	([ID],[First],[Second])
	VALUES (@cntr, N&#039;First&#039; + cast(@cntr as nchar), N&#039;Second&#039; + cast(@cntr as nchar))
SET @cntr = @cntr+1
END

The results are very different from yours.  
1) After the non-clustered index is created,  
* For the SELECT Second... query an Index Seek is indeed performed on the WHERE clause. and it took 2% of the total query time.

* For the SELECT ID... query, SQL used an Index Seek and joined to a RID Lookup to find ID within the result set.   This took 4% of the total query time.

--So the table scan was a factor of a small table size. 

2) After adding a clustered index on ID, 
* For the SELECT Second... query an Index Seek is again performed on the WHERE clause. and it took 2% of the total query time.

* For the SELECT ID... query, SQL also used only an Index Seek on First,Second.   This took 2% of the total query time.

-- Ivan Kotev was right that this creates a covering index.]]></description>
		<content:encoded><![CDATA[<p>I modified the table load as follows, to create 1000 rows:</p>
<p>/* Create Sample Table */<br />
SET Rowcount OFF<br />
DECLARE @cntr int<br />
SET @cntr=0</p>
<p>WHILE @cntr &lt; 1000<br />
BEGIN<br />
INSERT INTO [dbo].[MyTable]<br />
	([ID],[First],[Second])<br />
	VALUES (@cntr, N&#8217;First&#8217; + cast(@cntr as nchar), N&#8217;Second&#8217; + cast(@cntr as nchar))<br />
SET @cntr = @cntr+1<br />
END</p>
<p>The results are very different from yours.<br />
1) After the non-clustered index is created,<br />
* For the SELECT Second&#8230; query an Index Seek is indeed performed on the WHERE clause. and it took 2% of the total query time.</p>
<p>* For the SELECT ID&#8230; query, SQL used an Index Seek and joined to a RID Lookup to find ID within the result set.   This took 4% of the total query time.</p>
<p>&#8211;So the table scan was a factor of a small table size. </p>
<p>2) After adding a clustered index on ID,<br />
* For the SELECT Second&#8230; query an Index Seek is again performed on the WHERE clause. and it took 2% of the total query time.</p>
<p>* For the SELECT ID&#8230; query, SQL also used only an Index Seek on First,Second.   This took 2% of the total query time.</p>
<p>&#8211; Ivan Kotev was right that this creates a covering index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan Kotev</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-47170</link>
		<dc:creator><![CDATA[Ivan Kotev]]></dc:creator>
		<pubDate>Tue, 24 Feb 2009 10:31:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-47170</guid>
		<description><![CDATA[For me the &quot;a ha&quot; moment was when I realized that after the creation of the clustered index the 1st query used a Index Seek because the index was in fact a &quot;covering index&quot;, that has all the information  it needs (First, Second and ID - clustered index key) to resolve the query. Also I think is will be useful to mention that we can include more key or non-key columns in our non-clustered indexes to get larger covering indexes. Of course this has to be done wisely.]]></description>
		<content:encoded><![CDATA[<p>For me the &#8220;a ha&#8221; moment was when I realized that after the creation of the clustered index the 1st query used a Index Seek because the index was in fact a &#8220;covering index&#8221;, that has all the information  it needs (First, Second and ID &#8211; clustered index key) to resolve the query. Also I think is will be useful to mention that we can include more key or non-key columns in our non-clustered indexes to get larger covering indexes. Of course this has to be done wisely.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Boek</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-47133</link>
		<dc:creator><![CDATA[Rob Boek]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 22:30:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-47133</guid>
		<description><![CDATA[This is not a very good example. With only 5 rows, the entire table will fit on a single database page. It takes 2-3 page reads to do the index seek and bookmark look-up (to get the id column), versus only 1 page read to do a table scan.

If the table was larger, say 100 pages, it would choose the index seek since &lt; 5 page reads for the seek and bookmark look-up is clearly better than 100 for the table scan.]]></description>
		<content:encoded><![CDATA[<p>This is not a very good example. With only 5 rows, the entire table will fit on a single database page. It takes 2-3 page reads to do the index seek and bookmark look-up (to get the id column), versus only 1 page read to do a table scan.</p>
<p>If the table was larger, say 100 pages, it would choose the index seek since &lt; 5 page reads for the seek and bookmark look-up is clearly better than 100 for the table scan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Ahmedabad User Group Meeting February 21 2009  Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-47125</link>
		<dc:creator><![CDATA[SQLAuthority News - Ahmedabad User Group Meeting February 21 2009  Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 16:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-47125</guid>
		<description><![CDATA[[...] my session I had covered the topic of SQL SERVER - Observation - Effect of Clustered Index over Nonclustered Index. Query optimization is one art which is difficult to master. Just like any other art this requires [...]]]></description>
		<content:encoded><![CDATA[<p>[...] my session I had covered the topic of SQL SERVER &#8211; Observation &#8211; Effect of Clustered Index over Nonclustered Index. Query optimization is one art which is difficult to master. Just like any other art this requires [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-47123</link>
		<dc:creator><![CDATA[Brian Tkatch]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 15:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-47123</guid>
		<description><![CDATA[Very nice.

This could be expanded upon to make a much larger article, but for a short, to-the-point, answer provided, this is very nice.]]></description>
		<content:encoded><![CDATA[<p>Very nice.</p>
<p>This could be expanded upon to make a much larger article, but for a short, to-the-point, answer provided, this is very nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bashar Kokash</title>
		<link>http://blog.sqlauthority.com/2009/02/21/sql-server-observation-effect-of-clustered-index-over-nonclustered-index-2/#comment-47112</link>
		<dc:creator><![CDATA[Bashar Kokash]]></dc:creator>
		<pubDate>Mon, 23 Feb 2009 07:34:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=2754#comment-47112</guid>
		<description><![CDATA[I didn&#039;t read your previous post, but this one is very clear, thanks]]></description>
		<content:encoded><![CDATA[<p>I didn&#8217;t read your previous post, but this one is very clear, thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
