<?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; 2005 Find Table without Clustered Index &#8211; Find Table with no Primary Key</title>
	<atom:link href="http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ali</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-56223</link>
		<dc:creator>Ali</dc:creator>
		<pubDate>Tue, 29 Sep 2009 00:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-56223</guid>
		<description>Hi Gaurav Kukar,

I think you need non-clustered index on the following fields:

PublishDate

SectionID

Headline

Please correct me Pinal if I am wrong.
Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Gaurav Kukar,</p>
<p>I think you need non-clustered index on the following fields:</p>
<p>PublishDate</p>
<p>SectionID</p>
<p>Headline</p>
<p>Please correct me Pinal if I am wrong.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krunal</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53521</link>
		<dc:creator>Krunal</dc:creator>
		<pubDate>Tue, 07 Jul 2009 17:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53521</guid>
		<description>Hello Pinal,

I was given database. They added some tables. And I need to improve database optimization of table. What is the best way to start and what other things it requires?

Thanks,
Krunal</description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>I was given database. They added some tables. And I need to improve database optimization of table. What is the best way to start and what other things it requires?</p>
<p>Thanks,<br />
Krunal</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gaurav Kukar</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53328</link>
		<dc:creator>Gaurav Kukar</dc:creator>
		<pubDate>Mon, 29 Jun 2009 19:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53328</guid>
		<description>Hi All,

I going through the implementation of indexes on following given table and will use following reterival queries to retreive the data. Can you please help me out which column(s) I should use for Clustered index &amp; for Non Clustered and for Included Columns index for covered queries.. with example..


--Table Defination starts--
Create Table tblNews
(
SectionID int,
NewsID int,
Headline varchar(500),
Short_Story varchar(500),
PublishDate DateTime,
CONSTRAINT pk_NewsID Primary Key (NewsID)
)
--Table Defination ends--

--Queries---

select Headline, Short_Story from tblNews order by PublishDate desc

select Headline, Short_Story from tblNews where SectionID=1 order by PublishDate desc

select Headline, Short_Story from tblNews where NewsID between 1000 and 1500

select Headline, Short_Story from tblNews where Headline like &#039;%USA%&#039;order by PublishDate desc

----
Please do suggest and it will be a great help.

Thanks
Gaurav Kukar</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>I going through the implementation of indexes on following given table and will use following reterival queries to retreive the data. Can you please help me out which column(s) I should use for Clustered index &amp; for Non Clustered and for Included Columns index for covered queries.. with example..</p>
<p>&#8211;Table Defination starts&#8211;<br />
Create Table tblNews<br />
(<br />
SectionID int,<br />
NewsID int,<br />
Headline varchar(500),<br />
Short_Story varchar(500),<br />
PublishDate DateTime,<br />
CONSTRAINT pk_NewsID Primary Key (NewsID)<br />
)<br />
&#8211;Table Defination ends&#8211;</p>
<p>&#8211;Queries&#8212;</p>
<p>select Headline, Short_Story from tblNews order by PublishDate desc</p>
<p>select Headline, Short_Story from tblNews where SectionID=1 order by PublishDate desc</p>
<p>select Headline, Short_Story from tblNews where NewsID between 1000 and 1500</p>
<p>select Headline, Short_Story from tblNews where Headline like &#8216;%USA%&#8217;order by PublishDate desc</p>
<p>&#8212;-<br />
Please do suggest and it will be a great help.</p>
<p>Thanks<br />
Gaurav Kukar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahesh</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53106</link>
		<dc:creator>Mahesh</dc:creator>
		<pubDate>Fri, 19 Jun 2009 07:26:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53106</guid>
		<description>Hi Pinal,

I am a developer from pvt. firm in navi mumbai. I am developing an application which will handle entire email server transactions by an IT person. To develop this application using .net 2008 and Sql server 2005, i have 2 tables having records 2,500,000+ and 150,000+ respectively in its initial stage which will grow to 10 folds possibly in future. I want to have search queries on these tables to show updates through this application. WIth this table i have 3 more tables having records less than 35000 each which will be used with inner joins to display specific info on application.

Now , i want your help on how should i design queries or indexes which will fetch me desired results without giving connection timeout error. And also it should not take considerable time to load.My seniors have challenged me to fix this issue. I dont want to keep anything for them from my side. So please help me on this.

Please reply me on above email id by or before monday so i shold progress asap on this development.</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I am a developer from pvt. firm in navi mumbai. I am developing an application which will handle entire email server transactions by an IT person. To develop this application using .net 2008 and Sql server 2005, i have 2 tables having records 2,500,000+ and 150,000+ respectively in its initial stage which will grow to 10 folds possibly in future. I want to have search queries on these tables to show updates through this application. WIth this table i have 3 more tables having records less than 35000 each which will be used with inner joins to display specific info on application.</p>
<p>Now , i want your help on how should i design queries or indexes which will fetch me desired results without giving connection timeout error. And also it should not take considerable time to load.My seniors have challenged me to fix this issue. I dont want to keep anything for them from my side. So please help me on this.</p>
<p>Please reply me on above email id by or before monday so i shold progress asap on this development.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53057</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Wed, 17 Jun 2009 12:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53057</guid>
		<description>@sourirajan

What do you mean by Not working. 

What is not working. Please provide more details.

~ IM.</description>
		<content:encoded><![CDATA[<p>@sourirajan</p>
<p>What do you mean by Not working. </p>
<p>What is not working. Please provide more details.</p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sourirajan</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53041</link>
		<dc:creator>sourirajan</dc:creator>
		<pubDate>Tue, 16 Jun 2009 12:09:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-53041</guid>
		<description>hi

i have converted non clustered index to clustered index
by using the below query

create unique clustered index PK_Activity on Activity(Activity_id) WITH DROP_EXISTING

some times it is not working because the table have 
foreign key

how to avoid the foreign key problem</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>i have converted non clustered index to clustered index<br />
by using the below query</p>
<p>create unique clustered index PK_Activity on Activity(Activity_id) WITH DROP_EXISTING</p>
<p>some times it is not working because the table have<br />
foreign key</p>
<p>how to avoid the foreign key problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-52814</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Sun, 07 Jun 2009 16:44:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-52814</guid>
		<description>@Pankaj, 

You can try one of these, 

1. SP_depends [object_name]

2. SP_help [object_name]

3. From SQL Server Management Studio, in Object Explorer, right click Table Name - View dependencies. 

~ IM.</description>
		<content:encoded><![CDATA[<p>@Pankaj, </p>
<p>You can try one of these, </p>
<p>1. SP_depends [object_name]</p>
<p>2. SP_help [object_name]</p>
<p>3. From SQL Server Management Studio, in Object Explorer, right click Table Name &#8211; View dependencies. </p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pankaj</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-52807</link>
		<dc:creator>pankaj</dc:creator>
		<pubDate>Sun, 07 Jun 2009 09:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-52807</guid>
		<description>Is their any simplest way to find table dependancies....
I want to find a particular table is dependant on which other table in database.</description>
		<content:encoded><![CDATA[<p>Is their any simplest way to find table dependancies&#8230;.<br />
I want to find a particular table is dependant on which other table in database.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-47214</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:08:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-47214</guid>
		<description>[...] SQL SERVER - 2005 Find Table without Clustered Index - Find Table with no Primary Key [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; 2005 Find Table without Clustered Index &#8211; Find Table with no Primary Key [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nik</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-46662</link>
		<dc:creator>nik</dc:creator>
		<pubDate>Sat, 14 Feb 2009 10:56:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-46662</guid>
		<description>Hi,
Can you please guide me how to find record which are not inserted in index.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Can you please guide me how to find record which are not inserted in index.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ira Pfeifer</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-45683</link>
		<dc:creator>Ira Pfeifer</dc:creator>
		<pubDate>Fri, 16 Jan 2009 17:59:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-45683</guid>
		<description>Dave, you are propagating a dangerous generalization with this blog post and subsequent comments.  DBAs and database developers need to have an in-depth understanding of SQL Server in order to comprehend the implications of creating any type of index.  Clustered indices CAN enhance performance, but they come with many trade-offs.  For example:

- a poorly-chosen clustered index key can provoke table scans where an effective one will enable seeks, especially in the case of range queries.  
- a poor clustered index will definitely result in a high rate of table and index fragmentation, as alluded to by Marco C above.
- the clustered index key is implicitly included in all non-clustered indices, so choosing one that is too wide will slow performance and increase the size of all non-clustered indices on the same table.

So saying things like &quot;Clustered Index improves performance,&quot; as you do in the comments, is a bad idea.  I urge you to review your understanding of SQL Server data structures so that you do not promote potentially damaging ideas in your role as a Microsoft MVP.</description>
		<content:encoded><![CDATA[<p>Dave, you are propagating a dangerous generalization with this blog post and subsequent comments.  DBAs and database developers need to have an in-depth understanding of SQL Server in order to comprehend the implications of creating any type of index.  Clustered indices CAN enhance performance, but they come with many trade-offs.  For example:</p>
<p>- a poorly-chosen clustered index key can provoke table scans where an effective one will enable seeks, especially in the case of range queries.<br />
- a poor clustered index will definitely result in a high rate of table and index fragmentation, as alluded to by Marco C above.<br />
- the clustered index key is implicitly included in all non-clustered indices, so choosing one that is too wide will slow performance and increase the size of all non-clustered indices on the same table.</p>
<p>So saying things like &#8220;Clustered Index improves performance,&#8221; as you do in the comments, is a bad idea.  I urge you to review your understanding of SQL Server data structures so that you do not promote potentially damaging ideas in your role as a Microsoft MVP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-42274</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Mon, 01 Sep 2008 16:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-42274</guid>
		<description>@shashi, 

Follow this link, there is a already written script which you can refer to, this script will create a script for all indexes in the database, including primary key and unique key indexes.

http://www.sqlservercentral.com/scripts/Index+Management/31652/

If link does not works, do this, 

go to google.com, type &quot;how to script all indexes in a database sql server&quot; and click the first link. 

Hope this helps.
Imran.</description>
		<content:encoded><![CDATA[<p>@shashi, </p>
<p>Follow this link, there is a already written script which you can refer to, this script will create a script for all indexes in the database, including primary key and unique key indexes.</p>
<p><a href="http://www.sqlservercentral.com/scripts/Index+Management/31652/" rel="nofollow">http://www.sqlservercentral.com/scripts/Index+Management/31652/</a></p>
<p>If link does not works, do this, </p>
<p>go to google.com, type &#8220;how to script all indexes in a database sql server&#8221; and click the first link. </p>
<p>Hope this helps.<br />
Imran.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashi</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-42248</link>
		<dc:creator>Shashi</dc:creator>
		<pubDate>Mon, 01 Sep 2008 05:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-42248</guid>
		<description>I want to find out tables in my database who are using indexes. So that i could create similar indexes on the copy of the databse.</description>
		<content:encoded><![CDATA[<p>I want to find out tables in my database who are using indexes. So that i could create similar indexes on the copy of the databse.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: manpreet</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-39435</link>
		<dc:creator>manpreet</dc:creator>
		<pubDate>Mon, 23 Jun 2008 07:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-39435</guid>
		<description>first of all we have to look into our requirements. if we are working with database with lots of read (reporting server or olap db) then having a cluster index is a must. but if we are having lots of writes eg. table is working as temp table to store data then non cluster indexes can give better performance. but for important table , having cluster index is very important.</description>
		<content:encoded><![CDATA[<p>first of all we have to look into our requirements. if we are working with database with lots of read (reporting server or olap db) then having a cluster index is a must. but if we are having lots of writes eg. table is working as temp table to store data then non cluster indexes can give better performance. but for important table , having cluster index is very important.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghav</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-38850</link>
		<dc:creator>Raghav</dc:creator>
		<pubDate>Wed, 28 May 2008 14:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-38850</guid>
		<description>Hi,

Could you please tell me the scenario in which i should opt for custered index or non-clustered index. What is the trade off between two?</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Could you please tell me the scenario in which i should opt for custered index or non-clustered index. What is the trade off between two?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-35008</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Sat, 12 Apr 2008 07:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-35008</guid>
		<description>hi,
what is the diff between cluster/non cluster index?</description>
		<content:encoded><![CDATA[<p>hi,<br />
what is the diff between cluster/non cluster index?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-35007</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Sat, 12 Apr 2008 07:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-35007</guid>
		<description>how many unique key have in a table?</description>
		<content:encoded><![CDATA[<p>how many unique key have in a table?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Salah</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-34599</link>
		<dc:creator>Salah</dc:creator>
		<pubDate>Thu, 27 Mar 2008 08:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-34599</guid>
		<description>Guyes,

I want to know the F4 (search for objects) procedures in 2005. How to do that?

Thaks</description>
		<content:encoded><![CDATA[<p>Guyes,</p>
<p>I want to know the F4 (search for objects) procedures in 2005. How to do that?</p>
<p>Thaks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Priya</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-34450</link>
		<dc:creator>Priya</dc:creator>
		<pubDate>Wed, 19 Mar 2008 12:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-34450</guid>
		<description>I want 2 know which type of index is applied on table .
there is no key applied on that table ...
pls helpme</description>
		<content:encoded><![CDATA[<p>I want 2 know which type of index is applied on table .<br />
there is no key applied on that table &#8230;<br />
pls helpme</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nidhi</title>
		<link>http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-34341</link>
		<dc:creator>nidhi</dc:creator>
		<pubDate>Fri, 14 Mar 2008 10:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/05/26/sql-server-2005-find-table-without-clustered-index-find-table-with-no-primary-key/#comment-34341</guid>
		<description>Is there is any way to fetch the Unique index key columns if we knows the database name ?</description>
		<content:encoded><![CDATA[<p>Is there is any way to fetch the Unique index key columns if we knows the database name ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
