<?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; Difference Between Candidate Keys and Primary Key</title>
	<atom:link href="http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/</link>
	<description>SQL, SQL Server, MySQL, Big Data and NoSQL</description>
	<lastBuildDate>Wed, 19 Jun 2013 08:01:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Teacher</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-453713</link>
		<dc:creator><![CDATA[Teacher]]></dc:creator>
		<pubDate>Thu, 11 Apr 2013 10:15:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-453713</guid>
		<description><![CDATA[A table can have only one and only one primary key. however the primary key in a table can be composite with multiple attributes.
The table can have as many as candidate keys, all other candidate keys except the primary key is called alternate keys.

ur qstn is unambigious]]></description>
		<content:encoded><![CDATA[<p>A table can have only one and only one primary key. however the primary key in a table can be composite with multiple attributes.<br />
The table can have as many as candidate keys, all other candidate keys except the primary key is called alternate keys.</p>
<p>ur qstn is unambigious</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shailendra kumar</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-452649</link>
		<dc:creator><![CDATA[Shailendra kumar]]></dc:creator>
		<pubDate>Tue, 09 Apr 2013 17:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-452649</guid>
		<description><![CDATA[More than one primary key in a table is called___________ .]]></description>
		<content:encoded><![CDATA[<p>More than one primary key in a table is called___________ .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit Saxena</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-437274</link>
		<dc:creator><![CDATA[Ankit Saxena]]></dc:creator>
		<pubDate>Thu, 14 Mar 2013 15:15:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-437274</guid>
		<description><![CDATA[alternate keys.]]></description>
		<content:encoded><![CDATA[<p>alternate keys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: supriya</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-408910</link>
		<dc:creator><![CDATA[supriya]]></dc:creator>
		<pubDate>Thu, 17 Jan 2013 11:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-408910</guid>
		<description><![CDATA[all non primary keys in candidate keys is ______________called????]]></description>
		<content:encoded><![CDATA[<p>all non primary keys in candidate keys is ______________called????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BVK</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-354192</link>
		<dc:creator><![CDATA[BVK]]></dc:creator>
		<pubDate>Sat, 29 Sep 2012 10:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-354192</guid>
		<description><![CDATA[very nice information about sql keys 
thanks for share]]></description>
		<content:encoded><![CDATA[<p>very nice information about sql keys<br />
thanks for share</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck D</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-285522</link>
		<dc:creator><![CDATA[Chuck D]]></dc:creator>
		<pubDate>Thu, 17 May 2012 18:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-285522</guid>
		<description><![CDATA[Thank you for your insights into deciding on what best to use as a tables PK. Here are my 2 cents on the topic for whatever they&#039;re worth. While I do understand the argument for using candidate keys as opposed to surrogate / generated keys, somewhere during my fairly lengthy time of designing databases I have become a die hard advocate of the integer based generated or INCREMENT approach. There are several reasons for this, number one on the list being that internally generated keys are wholly owned and therefore 100% in the control of the DBMS. Candidates are almost always generated by an outside source and can be changed by them as radically and as often as they wish. A prime example of this occured as a biproduct of the merger of 2 large manufacturers. The decision was made to create all new product ID&#039;s to accomodate the newly formed company, and a wholesaler client of mine that kept a large inventory of one of the company&#039;s products was forced to deal with obsolete PK&#039;s on many millions of rows. Ultimately they decided to treat the outdated IDs as internal IDs and create a lookup table to cross-reference the new IDs, and wishing they had generated their own IDs from the begining. A couple of modified views and problem solved. I also find that IDs often have alpha content that holds some attachment or meaning to whoever chose them. Integers rarely have any meaning other than to uniquely identify something and so in my experience are far less likely to change than alpha-numerics. There are also no issues with single or double byte character sets, etc. as far as PKs and FKs are concerned. Of course if everyone used generated IDs there would never have been a debate over which candidate to use on your table and this discussion would never have taken place  ;)]]></description>
		<content:encoded><![CDATA[<p>Thank you for your insights into deciding on what best to use as a tables PK. Here are my 2 cents on the topic for whatever they&#8217;re worth. While I do understand the argument for using candidate keys as opposed to surrogate / generated keys, somewhere during my fairly lengthy time of designing databases I have become a die hard advocate of the integer based generated or INCREMENT approach. There are several reasons for this, number one on the list being that internally generated keys are wholly owned and therefore 100% in the control of the DBMS. Candidates are almost always generated by an outside source and can be changed by them as radically and as often as they wish. A prime example of this occured as a biproduct of the merger of 2 large manufacturers. The decision was made to create all new product ID&#8217;s to accomodate the newly formed company, and a wholesaler client of mine that kept a large inventory of one of the company&#8217;s products was forced to deal with obsolete PK&#8217;s on many millions of rows. Ultimately they decided to treat the outdated IDs as internal IDs and create a lookup table to cross-reference the new IDs, and wishing they had generated their own IDs from the begining. A couple of modified views and problem solved. I also find that IDs often have alpha content that holds some attachment or meaning to whoever chose them. Integers rarely have any meaning other than to uniquely identify something and so in my experience are far less likely to change than alpha-numerics. There are also no issues with single or double byte character sets, etc. as far as PKs and FKs are concerned. Of course if everyone used generated IDs there would never have been a debate over which candidate to use on your table and this discussion would never have taken place  ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Old Man</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-271202</link>
		<dc:creator><![CDATA[Old Man]]></dc:creator>
		<pubDate>Tue, 03 Apr 2012 06:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-271202</guid>
		<description><![CDATA[You look kind of asian in your picture]]></description>
		<content:encoded><![CDATA[<p>You look kind of asian in your picture</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-271196</link>
		<dc:creator><![CDATA[Steve]]></dc:creator>
		<pubDate>Tue, 03 Apr 2012 06:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-271196</guid>
		<description><![CDATA[I have recently had a debate with a colleague about candidate keys and primary keys, was interesting to read your thoughts!]]></description>
		<content:encoded><![CDATA[<p>I have recently had a debate with a colleague about candidate keys and primary keys, was interesting to read your thoughts!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sherkhan</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-244099</link>
		<dc:creator><![CDATA[sherkhan]]></dc:creator>
		<pubDate>Thu, 26 Jan 2012 15:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-244099</guid>
		<description><![CDATA[Very nice explanation]]></description>
		<content:encoded><![CDATA[<p>Very nice explanation</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Meer Afghan</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-243265</link>
		<dc:creator><![CDATA[Meer Afghan]]></dc:creator>
		<pubDate>Wed, 25 Jan 2012 04:54:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-243265</guid>
		<description><![CDATA[Thanks alot today i understand difference b/w these keys.]]></description>
		<content:encoded><![CDATA[<p>Thanks alot today i understand difference b/w these keys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muthu</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-206613</link>
		<dc:creator><![CDATA[muthu]]></dc:creator>
		<pubDate>Mon, 28 Nov 2011 18:04:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-206613</guid>
		<description><![CDATA[hi sir
i have created some tables using primary key and foreign key .when i was deleting records for that table which id can i taken . either primary key or foreign key id . which one is best one ? please tell me with soome examples]]></description>
		<content:encoded><![CDATA[<p>hi sir<br />
i have created some tables using primary key and foreign key .when i was deleting records for that table which id can i taken . either primary key or foreign key id . which one is best one ? please tell me with soome examples</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tubss</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-170049</link>
		<dc:creator><![CDATA[tubss]]></dc:creator>
		<pubDate>Tue, 20 Sep 2011 19:25:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-170049</guid>
		<description><![CDATA[Thanks a lot  I understand difference  key&#039;s !]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot  I understand difference  key&#8217;s !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alok</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-164751</link>
		<dc:creator><![CDATA[Alok]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 11:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-164751</guid>
		<description><![CDATA[Thanks alot today i understand difference b/w these keys.]]></description>
		<content:encoded><![CDATA[<p>Thanks alot today i understand difference b/w these keys.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murtaza</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-158625</link>
		<dc:creator><![CDATA[Murtaza]]></dc:creator>
		<pubDate>Thu, 18 Aug 2011 01:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-158625</guid>
		<description><![CDATA[Thanks a lot Pinal Dave..]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot Pinal Dave..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sunit mishra</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-155367</link>
		<dc:creator><![CDATA[sunit mishra]]></dc:creator>
		<pubDate>Tue, 09 Aug 2011 10:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-155367</guid>
		<description><![CDATA[don&#039;t be complex try to be simple for u and for others...........]]></description>
		<content:encoded><![CDATA[<p>don&#8217;t be complex try to be simple for u and for others&#8230;&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Javed Khan</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-136793</link>
		<dc:creator><![CDATA[Javed Khan]]></dc:creator>
		<pubDate>Thu, 26 May 2011 11:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-136793</guid>
		<description><![CDATA[Very nice articles
Thanks a lots]]></description>
		<content:encoded><![CDATA[<p>Very nice articles<br />
Thanks a lots</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Carlton</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-94382</link>
		<dc:creator><![CDATA[John Carlton]]></dc:creator>
		<pubDate>Wed, 20 Oct 2010 06:42:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-94382</guid>
		<description><![CDATA[Possibly, selecting the proper key will make a best work! I like your post about key and primary keys. It’s being applied essentially and suitably.]]></description>
		<content:encoded><![CDATA[<p>Possibly, selecting the proper key will make a best work! I like your post about key and primary keys. It’s being applied essentially and suitably.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NandaKumar</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-92994</link>
		<dc:creator><![CDATA[NandaKumar]]></dc:creator>
		<pubDate>Thu, 14 Oct 2010 07:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-92994</guid>
		<description><![CDATA[Hi Umesh,

Try STUFF string function...

REgards,
NandaKumar]]></description>
		<content:encoded><![CDATA[<p>Hi Umesh,</p>
<p>Try STUFF string function&#8230;</p>
<p>REgards,<br />
NandaKumar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umesh</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-86883</link>
		<dc:creator><![CDATA[Umesh]]></dc:creator>
		<pubDate>Tue, 07 Sep 2010 09:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-86883</guid>
		<description><![CDATA[Hi 
i am regular reader of your blog i am currently working as BI 
and found one query form my client they want a employee id 
start from  &#039;00001&#039; and increment by 1 like 00001,00002,.......00011 and so on. i tried to generate a employee id with above pattern.  but still have no luck please help me out of this problem 

Umesh]]></description>
		<content:encoded><![CDATA[<p>Hi<br />
i am regular reader of your blog i am currently working as BI<br />
and found one query form my client they want a employee id<br />
start from  &#8217;00001&#8242; and increment by 1 like 00001,00002,&#8230;&#8230;.00011 and so on. i tried to generate a employee id with above pattern.  but still have no luck please help me out of this problem </p>
<p>Umesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anil</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-81044</link>
		<dc:creator><![CDATA[Anil]]></dc:creator>
		<pubDate>Wed, 21 Jul 2010 04:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-81044</guid>
		<description><![CDATA[@ Marko ,

As it is being said &quot;Besides, this Primary Key may not be used in Joins.&quot;

It is quite possible that other tables having foreign key referring the primarykey(let it be non Identity column which you have created separately and declared it as pk)

So PK mostly be used as foreign key which can appear in joins also as well as in where clause to filter the records. 

so whats the point to create separate column as pk and not to use identity columns as pk?


-Anil]]></description>
		<content:encoded><![CDATA[<p>@ Marko ,</p>
<p>As it is being said &#8220;Besides, this Primary Key may not be used in Joins.&#8221;</p>
<p>It is quite possible that other tables having foreign key referring the primarykey(let it be non Identity column which you have created separately and declared it as pk)</p>
<p>So PK mostly be used as foreign key which can appear in joins also as well as in where clause to filter the records. </p>
<p>so whats the point to create separate column as pk and not to use identity columns as pk?</p>
<p>-Anil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-63403</link>
		<dc:creator><![CDATA[Marko Parkkola]]></dc:creator>
		<pubDate>Sun, 21 Mar 2010 18:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-63403</guid>
		<description><![CDATA[I think it depends but I must say I&#039;m not 100% sure about this.

If both indexes, clustered and non-clustered are ordered in the same way then there&#039;s probably no benefit from non-clustered index.

But I&#039;ve heard that in some cases having two indexes ordered in opposite ways will increase performance for select queries.

Also if I use multiple fields in the join/where then I&#039;ll add composite indexes to the table that may overlap with existing ones.

But anyway, always measure your performance after you&#039;ve done changes. For instance, I did some changes to a DB last week and I&#039;m planning to spend part of next week to observe how those changes are affecting the whole software, not just that table.]]></description>
		<content:encoded><![CDATA[<p>I think it depends but I must say I&#8217;m not 100% sure about this.</p>
<p>If both indexes, clustered and non-clustered are ordered in the same way then there&#8217;s probably no benefit from non-clustered index.</p>
<p>But I&#8217;ve heard that in some cases having two indexes ordered in opposite ways will increase performance for select queries.</p>
<p>Also if I use multiple fields in the join/where then I&#8217;ll add composite indexes to the table that may overlap with existing ones.</p>
<p>But anyway, always measure your performance after you&#8217;ve done changes. For instance, I did some changes to a DB last week and I&#8217;m planning to spend part of next week to observe how those changes are affecting the whole software, not just that table.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devesh</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-63395</link>
		<dc:creator><![CDATA[Devesh]]></dc:creator>
		<pubDate>Sun, 21 Mar 2010 14:00:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-63395</guid>
		<description><![CDATA[@ Marko,

I don&#039;t think it is a great idea to create a clustered as well as nonclustered indexes on the same column. as the clustered index will be having a reference to all the columns in the table but the nonclustered index will only have a reference to the columns specified.

The key point here is that whenever You update or delete a row (or column) 

all the index will be updated.
It is redundant to have two indexes on a column.

In Your case the indexes will take nearly twice time to update, so more time on locks on table.  

So a big performance hit.]]></description>
		<content:encoded><![CDATA[<p>@ Marko,</p>
<p>I don&#8217;t think it is a great idea to create a clustered as well as nonclustered indexes on the same column. as the clustered index will be having a reference to all the columns in the table but the nonclustered index will only have a reference to the columns specified.</p>
<p>The key point here is that whenever You update or delete a row (or column) </p>
<p>all the index will be updated.<br />
It is redundant to have two indexes on a column.</p>
<p>In Your case the indexes will take nearly twice time to update, so more time on locks on table.  </p>
<p>So a big performance hit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marko Parkkola</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-61787</link>
		<dc:creator><![CDATA[Marko Parkkola]]></dc:creator>
		<pubDate>Thu, 25 Feb 2010 19:36:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-61787</guid>
		<description><![CDATA[Hi,

I have to gracefully disagree and exactly for the points you make against using IDENTITY as PK.

&gt; There is no use of this Primary Key in both application and in T-SQL

That is exactly why I always prefer adding &quot;separate&quot; IDENTITY column as PK. I don&#039;t want to ever show PK values outside the DB. If I need to expose PK outside I make sure in the application code that it is only seen in the data acces layer.

&gt; Besides, this Primary Key may not be used in Joins.

But does it matter? You can use other column in joins and build unique index to those. You just have to make sure you don&#039;t kill performance with additional indexes, of course. If I use PK column in joins or in where-clause, I usually add non-clustered index to it also.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have to gracefully disagree and exactly for the points you make against using IDENTITY as PK.</p>
<p>&gt; There is no use of this Primary Key in both application and in T-SQL</p>
<p>That is exactly why I always prefer adding &#8220;separate&#8221; IDENTITY column as PK. I don&#8217;t want to ever show PK values outside the DB. If I need to expose PK outside I make sure in the application code that it is only seen in the data acces layer.</p>
<p>&gt; Besides, this Primary Key may not be used in Joins.</p>
<p>But does it matter? You can use other column in joins and build unique index to those. You just have to make sure you don&#8217;t kill performance with additional indexes, of course. If I use PK column in joins or in where-clause, I usually add non-clustered index to it also.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santosh kumar patro</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-61772</link>
		<dc:creator><![CDATA[santosh kumar patro]]></dc:creator>
		<pubDate>Thu, 25 Feb 2010 14:56:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-61772</guid>
		<description><![CDATA[Hi,

I am not able to get the concept regarding the following point that you have specified:

Please note that many database experts suggest that it is not a good practice to make Identity Column as Primary Key. The reason behind this suggestion is that many times Identity Column that has been assigned as Primary Key does not play any role in database. There is no use of this Primary Key in both application and in T-SQL. Besides, this Primary Key may not be used in Joins. It is a known fact that when there is JOIN on Primary Key or when Primary Key is used in the WHERE condition it usually gives better performance than non primary key columns. This argument is absolutely valid and one must make sure not to use such Identity Column.

Please explain it more clearly regarding the above point.

Thanks,
Santosh]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am not able to get the concept regarding the following point that you have specified:</p>
<p>Please note that many database experts suggest that it is not a good practice to make Identity Column as Primary Key. The reason behind this suggestion is that many times Identity Column that has been assigned as Primary Key does not play any role in database. There is no use of this Primary Key in both application and in T-SQL. Besides, this Primary Key may not be used in Joins. It is a known fact that when there is JOIN on Primary Key or when Primary Key is used in the WHERE condition it usually gives better performance than non primary key columns. This argument is absolutely valid and one must make sure not to use such Identity Column.</p>
<p>Please explain it more clearly regarding the above point.</p>
<p>Thanks,<br />
Santosh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CALM</title>
		<link>http://blog.sqlauthority.com/2009/10/22/sql-server-difference-between-candidate-keys-and-primary-key-2/#comment-57623</link>
		<dc:creator><![CDATA[CALM]]></dc:creator>
		<pubDate>Sun, 15 Nov 2009 16:04:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=7111#comment-57623</guid>
		<description><![CDATA[Thank you, good enough]]></description>
		<content:encoded><![CDATA[<p>Thank you, good enough</p>
]]></content:encoded>
	</item>
</channel>
</rss>
