﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Michael Søndergaard  / Fix Default Constraint Naming / 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>Tue, 21 May 2013 23:29:28 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Fix Default Constraint Naming</title><link>http://www.sqlservercentral.com/Forums/Topic998995-2586-1.aspx</link><description>It means that if all columns making up the primary key is larger than 900 bytes combined, you would be able to add that to the alias table. In practice it shouldn't have an affect, unless your schema, table  and column names are very long</description><pubDate>Fri, 24 Feb 2012 13:32:34 GMT</pubDate><dc:creator>Ligtorn</dc:creator></item><item><title>RE: Fix Default Constraint Naming</title><link>http://www.sqlservercentral.com/Forums/Topic998995-2586-1.aspx</link><description>I am using AliasRules table. I need clarity regarding this warning:"Warning! The maximum key length is 900 bytes. The index 'PK_AliasRules' has maximum length of 1025 bytes. For some combination of large values, the insert/update operation will fail."How can you tell if your key length will approach 900 bytes?  What combination of large values will fail?</description><pubDate>Tue, 29 Nov 2011 14:04:37 GMT</pubDate><dc:creator>KoldCoffee</dc:creator></item><item><title>RE: Fix Default Constraint Naming</title><link>http://www.sqlservercentral.com/Forums/Topic998995-2586-1.aspx</link><description>BTW for all future readers. I have noticed two errors in the publication. 1. I am showing the source code for spFixColumnCheckNaming instead of spFixColumnDefaultNaming. However they are 99% identical in structure and feature. If you want to look at the right source code, check for install script, that is still correct.2. A copy / paste error have occurred in the result output for example 2. Please ignore the first line</description><pubDate>Wed, 06 Oct 2010 11:46:14 GMT</pubDate><dc:creator>Ligtorn</dc:creator></item><item><title>RE: Fix Default Constraint Naming</title><link>http://www.sqlservercentral.com/Forums/Topic998995-2586-1.aspx</link><description>Awesome - now these are the kind of articles we need.Doug</description><pubDate>Wed, 06 Oct 2010 11:07:41 GMT</pubDate><dc:creator>Douglas Osborne-456728</dc:creator></item><item><title>RE: Fix Default Constraint Naming</title><link>http://www.sqlservercentral.com/Forums/Topic998995-2586-1.aspx</link><description>Don't worry about the warning it only matters if you alias rows are larger than 900 bytes. And if you are not using any aliases it doesn't matter at allActually you don't need to tweak spFixColumnDefaultNaming for handling PK, FK, IX and UK. My other stored procedures are scheduled for publication the next couple of days. But if you can't wait. just check my site. [url=http://sql.soendergaard.info]http://sql.soendergaard.info[/url]</description><pubDate>Wed, 06 Oct 2010 10:47:16 GMT</pubDate><dc:creator>Ligtorn</dc:creator></item><item><title>RE: Fix Default Constraint Naming</title><link>http://www.sqlservercentral.com/Forums/Topic998995-2586-1.aspx</link><description>Michael,I get Warning! The maximum key length is 900 bytes. The index 'PK_AliasRules' has maximum length of 1025 bytes. For some combination of large values, the insert/update operation will fail.for your script at http://files.soendergaard.info/Install_spFixColumnDefaultNaming_V2005-2008.sql. Running the 2008 studio on a SQl2005 db.It worked perfectly, BTW - awesome piece of code - I'll need to tweak it to do the same for PKs, FKs, IX and UKs ... Great standards technique,Doug</description><pubDate>Wed, 06 Oct 2010 07:34:38 GMT</pubDate><dc:creator>Douglas Osborne-456728</dc:creator></item><item><title>Fix Default Constraint Naming</title><link>http://www.sqlservercentral.com/Forums/Topic998995-2586-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/scripts/Default+Constraints/70507/"&gt;Fix Default Constraint Naming&lt;/A&gt;[/B]</description><pubDate>Wed, 06 Oct 2010 00:21:47 GMT</pubDate><dc:creator>Ligtorn</dc:creator></item></channel></rss>