<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/4.0.3" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Data Management - Latest Comments on SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
		<link>http://blogs.lessthandot.com/index.php/DataMgmt/?disp=comments</link>
		<atom:link rel="self" type="application/rss+xml" href="http://blogs.lessthandot.com/index.php/DataMgmt/?tempskin=_rss2&#38;disp=comments&#38;p=1936" />
		<description></description>
		<language>en-GB</language>
		<docs>http://backend.userland.com/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=4.0.3"/>
		<ttl>60</ttl>
				<item>
			<title>SQLDenis [Member] in response to: SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
			<pubDate>Sun, 09 Dec 2012 10:10:19 +0000</pubDate>
			<dc:creator>SQLDenis [Member]</dc:creator>
			<guid isPermaLink="false">c11261@http://blogs.lessthandot.com/</guid>
			<description>You know how many times I have answered how to turn that behavior off? Take a look at Stackoverflow how many times this question has been asked: &lt;a href=&quot;http://stackoverflow.com/search?q=Prevent+saving+changes+that+require+table+re-creation&amp;amp;submit=search&quot; rel=&quot;nofollow&quot;&gt;http://stackoverflow.com/search?q=Prevent+saving+changes+that+require+table+re-creation&amp;amp;submit=search&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I don&#039;t think these people once they turn it off realize what happens next time they do a change where SSMS just goes ahead and recreates the table</description>
			<content:encoded><![CDATA[You know how many times I have answered how to turn that behavior off? Take a look at Stackoverflow how many times this question has been asked: <a href="http://stackoverflow.com/search?q=Prevent+saving+changes+that+require+table+re-creation&amp;submit=search" rel="nofollow">http://stackoverflow.com/search?q=Prevent+saving+changes+that+require+table+re-creation&amp;submit=search</a><br />
<br />
I don't think these people once they turn it off realize what happens next time they do a change where SSMS just goes ahead and recreates the table]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-trust-the-ssms#c11261</link>
		</item>
				<item>
			<title> ta.speot.is [Visitor] in response to: SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
			<pubDate>Sun, 09 Dec 2012 03:15:50 +0000</pubDate>
			<dc:creator>ta.speot.is [Visitor]</dc:creator>
			<guid isPermaLink="false">c11260@http://blogs.lessthandot.com/</guid>
			<description>Unless I&#039;m mistaken, you can&#039;t make changes through the designer that involve dropping and recreating a table unless you opt into doing so. Out of the box, SSMS will not allow you to do it.&lt;br /&gt;
&lt;br /&gt;
The &quot;Prevent saving changes that require table re-creation&quot; option is enabled by default and the limitations and risks of turning it off are pretty well documented:&lt;br /&gt;
&lt;br /&gt;
http://support.microsoft.com/kb/956176</description>
			<content:encoded><![CDATA[Unless I'm mistaken, you can't make changes through the designer that involve dropping and recreating a table unless you opt into doing so. Out of the box, SSMS will not allow you to do it.<br />
<br />
The "Prevent saving changes that require table re-creation" option is enabled by default and the limitations and risks of turning it off are pretty well documented:<br />
<br />
http://support.microsoft.com/kb/956176]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-trust-the-ssms#c11260</link>
		</item>
				<item>
			<title> Paul Hunter [Visitor] in response to: SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
			<pubDate>Wed, 05 Dec 2012 21:02:14 +0000</pubDate>
			<dc:creator>Paul Hunter [Visitor]</dc:creator>
			<guid isPermaLink="false">c11248@http://blogs.lessthandot.com/</guid>
			<description>Interesting post for finding &quot;unnamed&quot; constraints.&lt;br /&gt;
&lt;br /&gt;
For SQL 2005+ you can use the system catalogs.  For example:&lt;br /&gt;
&lt;br /&gt;
select * from sys.default_constraints&lt;br /&gt;
where is_system_named = 1&lt;br /&gt;
&lt;br /&gt;
There are views for: foreign_keys, check_constraints, and key_constraints.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
			<content:encoded><![CDATA[Interesting post for finding "unnamed" constraints.<br />
<br />
For SQL 2005+ you can use the system catalogs.  For example:<br />
<br />
select * from sys.default_constraints<br />
where is_system_named = 1<br />
<br />
There are views for: foreign_keys, check_constraints, and key_constraints.<br />
<br />
<br />
<br />
<br />]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-trust-the-ssms#c11248</link>
		</item>
				<item>
			<title>SQLDenis [Member] in response to: SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
			<pubDate>Wed, 05 Dec 2012 13:45:47 +0000</pubDate>
			<dc:creator>SQLDenis [Member]</dc:creator>
			<guid isPermaLink="false">c11246@http://blogs.lessthandot.com/</guid>
			<description>Paul, you are correct that you can create randomly named constraints in T-SQL as well, see this post here: &lt;a href=&quot;http://blogs.lessthandot.com/index.php/DataMgmt/DBProgramming/how-to-name-default-constraints-and-how-&quot; rel=&quot;nofollow&quot;&gt;How To Name Default Constraints And How To Drop Default Constraint Without A Name In SQL Server&lt;/a&gt;, it explains how you can find these &#039;unnamed&#039; constraints</description>
			<content:encoded><![CDATA[Paul, you are correct that you can create randomly named constraints in T-SQL as well, see this post here: <a href="http://blogs.lessthandot.com/index.php/DataMgmt/DBProgramming/how-to-name-default-constraints-and-how-" rel="nofollow">How To Name Default Constraints And How To Drop Default Constraint Without A Name In SQL Server</a>, it explains how you can find these 'unnamed' constraints]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-trust-the-ssms#c11246</link>
		</item>
				<item>
			<title> Paul Hunter [Visitor] in response to: SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
			<pubDate>Wed, 05 Dec 2012 13:39:23 +0000</pubDate>
			<dc:creator>Paul Hunter [Visitor]</dc:creator>
			<guid isPermaLink="false">c11245@http://blogs.lessthandot.com/</guid>
			<description>One thing I notice is that non-SQL folk can use T-SQL to create defaults and checks, but not give them names...&lt;br /&gt;
&lt;br /&gt;
ALTER TABLE my_table ADD new_column INT NOT NULL DEFAULT (0) WITH VALUES;&lt;br /&gt;
&lt;br /&gt;
SQL Server will then assign a random name as it does with the designer.&lt;br /&gt;
&lt;br /&gt;
I like having properly defined names for default, check and foriegn key constraints -- well all SQL objects.  Everyone should create and publish a standards document that specifies how to properly name objects and a whole lot of other stuff.  You&#039;ll end up with a lot less confusion for everyone concerned.</description>
			<content:encoded><![CDATA[One thing I notice is that non-SQL folk can use T-SQL to create defaults and checks, but not give them names...<br />
<br />
ALTER TABLE my_table ADD new_column INT NOT NULL DEFAULT (0) WITH VALUES;<br />
<br />
SQL Server will then assign a random name as it does with the designer.<br />
<br />
I like having properly defined names for default, check and foriegn key constraints -- well all SQL objects.  Everyone should create and publish a standards document that specifies how to properly name objects and a whole lot of other stuff.  You'll end up with a lot less confusion for everyone concerned.]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-trust-the-ssms#c11245</link>
		</item>
				<item>
			<title>SQLDenis [Member] in response to: SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
			<pubDate>Wed, 05 Dec 2012 13:21:59 +0000</pubDate>
			<dc:creator>SQLDenis [Member]</dc:creator>
			<guid isPermaLink="false">c11243@http://blogs.lessthandot.com/</guid>
			<description>sqlsister, I agree, this also makes it much easier to recreate the DB from scratch as well</description>
			<content:encoded><![CDATA[sqlsister, I agree, this also makes it much easier to recreate the DB from scratch as well]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-trust-the-ssms#c11243</link>
		</item>
				<item>
			<title>sqlsister [Member] in response to: SQL Advent 2012 Day 5: Do not trust the SSMS designers</title>
			<pubDate>Wed, 05 Dec 2012 13:19:54 +0000</pubDate>
			<dc:creator>sqlsister [Member]</dc:creator>
			<guid isPermaLink="false">c11242@http://blogs.lessthandot.com/</guid>
			<description>Also, changes to the database struture should be treated like all code and put under source control so they can easily be deployed. Writing a script to put into your source control system is one of the best ways to do this.</description>
			<content:encoded><![CDATA[Also, changes to the database struture should be treated like all code and put under source control so they can easily be deployed. Writing a script to put into your source control system is one of the best ways to do this.]]></content:encoded>
			<link>http://blogs.lessthandot.com/index.php/DataMgmt/DBAdmin/MSSQLServerAdmin/do-not-trust-the-ssms#c11242</link>
		</item>
			</channel>
</rss>
