﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Administration / Notification Services  / Creating a Primary Key over an existing Unique, Clustered Index / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 01:58:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Creating a Primary Key over an existing Unique, Clustered Index</title><link>http://www.sqlservercentral.com/Forums/Topic511316-92-1.aspx</link><description>Dropped all the Foreign Keys that were associated with the Person primary key.Dropped the Unique Clustered Index over Person.Created the Primary Key as Clustered over Person_IDAdded the Foreign key constraints back.Just wanted you to know.Thanks,Larry</description><pubDate>Wed, 04 Jun 2008 08:34:11 GMT</pubDate><dc:creator>Lawrence M. Meklemburg</dc:creator></item><item><title>Creating a Primary Key over an existing Unique, Clustered Index</title><link>http://www.sqlservercentral.com/Forums/Topic511316-92-1.aspx</link><description>I have 7 tables all associated with what a Primary Key on a table called Person.  The column for the Primary Key is called Person_ID.The problem is when I restored the database from a SQL 2000 backup to SQL 2005 Enterprise Edition DBCC CheckDB reported errors in the database associated the Person table.  I noticed that in error someone had made the Person_ID a non-clustered index (PK_PersonID), so I scripted a query to drop the index and create a new unique, clustered index over Person_ID.  That fixed my DBCC CHECKDB error, but left me without a Primary Key on the Person table.  How do I create the primary key on Person_ID for the Person table?Thanks,Larry</description><pubDate>Wed, 04 Jun 2008 06:51:09 GMT</pubDate><dc:creator>Lawrence M. Meklemburg</dc:creator></item></channel></rss>