﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / Primary key question / 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>Wed, 22 May 2013 14:08:30 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Primary key question</title><link>http://www.sqlservercentral.com/Forums/Topic1410797-1550-1.aspx</link><description>That is one for testing per your environment as either could produce the best result.I would do a test without the primary key, insert the data, create the primary key and time it.Then truncate the table and import the data again.That way you have a time it takes to import and create the key VS time it takes to import with the key existing, then you can make an informed choice.</description><pubDate>Thu, 24 Jan 2013 02:34:09 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>Primary key question</title><link>http://www.sqlservercentral.com/Forums/Topic1410797-1550-1.aspx</link><description>I'm planning to move data from one database to another on the same server. I've DDL scripts ready to create objects on the new database but I'm not sure if I've to create primary keys before loading the data since I think it will slow up the load. So my question is, do I need to create the primary keys before loading or after loading the data?</description><pubDate>Wed, 23 Jan 2013 14:28:38 GMT</pubDate><dc:creator>sunny.tjk</dc:creator></item></channel></rss>