<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Server Planet &#187; DDL</title>
	<atom:link href="http://sqlserverplanet.com/category/ddl/feed" rel="self" type="application/rss+xml" />
	<link>http://sqlserverplanet.com</link>
	<description>Tips and Articles on SQL Server</description>
	<lastBuildDate>Thu, 03 May 2012 23:47:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using DBCC CHECKIDENT to Reseed a Table After Delete</title>
		<link>http://sqlserverplanet.com/tsql/using-dbcc-checkident-to-reseed-a-table-after-delete</link>
		<comments>http://sqlserverplanet.com/tsql/using-dbcc-checkident-to-reseed-a-table-after-delete#comments</comments>
		<pubDate>Sun, 13 Nov 2011 23:56:39 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[DDL]]></category>
		<category><![CDATA[TSQL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=2246</guid>
		<description><![CDATA[I imagine you are just looking for simple syntax in order to reseed the identity column of a table you just deleted from. Here is the quick version: DBCC CHECKIDENT('##reseed_example', RESEED, @max_seed) And here is an extended example: -- populate a table with identity SELECT ID = IDENTITY(int,1,1) ,name INTO ##reseed_example FROM dbo.sysobjects -- delete [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/tsql/using-dbcc-checkident-to-reseed-a-table-after-delete/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Indexed Views</title>
		<link>http://sqlserverplanet.com/ddl/indexed-views</link>
		<comments>http://sqlserverplanet.com/ddl/indexed-views#comments</comments>
		<pubDate>Mon, 19 Sep 2011 23:31:18 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[DBA]]></category>
		<category><![CDATA[DDL]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=2215</guid>
		<description><![CDATA[To explain what an indexed view is, let&#8217;s first look at what constitutes a view. A view may sound like a fancy elaborate thing, however all it is, is a saved SELECT statement, nothing else. It is not explicitly compiled, nor does it contain any data. When you select from a view, it goes to [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/ddl/indexed-views/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Alter Schema &#8211; Move object to another schema</title>
		<link>http://sqlserverplanet.com/ddl/alter-schema-move-object-to-another-schema</link>
		<comments>http://sqlserverplanet.com/ddl/alter-schema-move-object-to-another-schema#comments</comments>
		<pubDate>Wed, 20 Oct 2010 00:17:22 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[DDL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=1794</guid>
		<description><![CDATA[As easy as this syntax is, I had to keep looking it up for about a year. I suppose that&#8217;s why you are here. Well, here it is: ALTER SCHEMA newschema TRANSFER oldschema.Table This will transfer the table defined under &#8220;oldschema&#8221; and transfer it to &#8220;newschema&#8221;. Related Posts:»Simplifying Security Using Schemas»The database principal owns a [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/ddl/alter-schema-move-object-to-another-schema/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Column Constraint</title>
		<link>http://sqlserverplanet.com/ddl/add-column-constraint</link>
		<comments>http://sqlserverplanet.com/ddl/add-column-constraint#comments</comments>
		<pubDate>Sun, 02 Aug 2009 16:37:59 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[DDL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=886</guid>
		<description><![CDATA[To add a constraint to an existing table use the alter table statement with the add constraint command. There are four different types of constraints: Primary Key Constraints &#8211; Enforces unique values for specified column, can be referenced. Foreign Key Constraints &#8211; Enforces a reference to a primary key Unique Constraints &#8211; Ensures unique values [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/ddl/add-column-constraint/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Add Column Default Value</title>
		<link>http://sqlserverplanet.com/ddl/add-column-default-value</link>
		<comments>http://sqlserverplanet.com/ddl/add-column-default-value#comments</comments>
		<pubDate>Wed, 29 Jul 2009 23:56:32 +0000</pubDate>
		<dc:creator>Derek Dieter</dc:creator>
				<category><![CDATA[DDL]]></category>

		<guid isPermaLink="false">http://sqlserverplanet.com/?p=868</guid>
		<description><![CDATA[In SQL Server there are two ways to add a column with a default value. Add Default Value to Existing Column -- Add default to existing column DateOfHire: ALTER TABLE [dbo].[Employees] ADD DEFAULT (getdate()) FOR [DateOfHire] -- Add default value to existing column IsTerminated ALTER TABLE [dbo].[Employees] ADD DEFAULT ((0)) FOR [IsTerminated] Add New Column [...]]]></description>
		<wfw:commentRss>http://sqlserverplanet.com/ddl/add-column-default-value/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

