<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to alter an existing column in a table to become a primary key/identity column?</title><link>http://blogs.msdn.com/walzenbach/archive/2007/12/18/how-to-alter-an-existing-column-in-a-table-to-become-a-primary-key-identity-column.aspx</link><description>Imagine the following Data Definition Language (DDL): USE [test] GO /****** Objekt: Table [dbo].[Customer] Skriptdatum: 12/18/2007 11:04:16 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo] . [Customer] ( [ID] [int] NOT NULL,</description><dc:language>de-DE</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: How to alter an existing column in a table to become a primary key/identity column?</title><link>http://blogs.msdn.com/walzenbach/archive/2007/12/18/how-to-alter-an-existing-column-in-a-table-to-become-a-primary-key-identity-column.aspx#6795643</link><pubDate>Tue, 18 Dec 2007 13:47:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6795643</guid><dc:creator>WindowsDave</dc:creator><description>&lt;p&gt;I think that I should give a try to this. But is it not that simple as it seems to be after reading this post.&lt;/p&gt;
</description></item><item><title>re: How to alter an existing column in a table to become a primary key/identity column?</title><link>http://blogs.msdn.com/walzenbach/archive/2007/12/18/how-to-alter-an-existing-column-in-a-table-to-become-a-primary-key-identity-column.aspx#6804931</link><pubDate>Wed, 19 Dec 2007 12:37:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6804931</guid><dc:creator>Mischa Kroon</dc:creator><description>&lt;p&gt;whats wrong with:&lt;/p&gt;
&lt;p&gt;ALTER TABLE tablename ADD CONSTRAINT&lt;/p&gt;
&lt;p&gt;PK_tablename PRIMARY KEY CLUSTERED &lt;/p&gt;
&lt;p&gt;(ID)&lt;/p&gt;
&lt;p&gt;Way shorter, and more readible :)&lt;/p&gt;
</description></item><item><title>re: How to alter an existing column in a table to become a primary key/identity column?</title><link>http://blogs.msdn.com/walzenbach/archive/2007/12/18/how-to-alter-an-existing-column-in-a-table-to-become-a-primary-key-identity-column.aspx#6805063</link><pubDate>Wed, 19 Dec 2007 12:56:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6805063</guid><dc:creator>Walzenbach</dc:creator><description>&lt;p&gt;Hi Mischa,&lt;/p&gt;
&lt;p&gt;using ALTER TABLE the way you described would &amp;gt;&amp;gt;only&amp;lt;&amp;lt; set a primary clustered key on [ID]. All the mumbo-jumbo is necessary to generate the identity field.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt; &amp;nbsp; Daniel&lt;/p&gt;
</description></item></channel></rss>