﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Andy Warren / Article Discussions / Article Discussions by Author  / Worst Practice - Adding a Column Without Thinking! / 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 16:43:04 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>&lt;P&gt;What about DTS packages?  I've had developers add columns and forget to tell me, then they wonder why things aren't working correctly when we push to production.  Maddening.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;-m&lt;/P&gt;</description><pubDate>Wed, 24 Mar 2004 14:20:00 GMT</pubDate><dc:creator>mcloney</dc:creator></item><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>&lt;P&gt;How about "Does the column make sense logically?"  i.e. will the column take my BCNF table(s) and turn them into an unnormalized mess of redundancy and inconsistency?  &lt;/P&gt;&lt;P&gt;This, of course, assumes that the database was designed properly in the first place.&lt;/P&gt;</description><pubDate>Thu, 19 Feb 2004 10:53:00 GMT</pubDate><dc:creator>DCPeterson</dc:creator></item><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>&lt;P&gt;sp_refreshview recompiles the view which achieves the same thing as running an ALTER statement&lt;/P&gt;</description><pubDate>Thu, 19 Feb 2004 08:53:00 GMT</pubDate><dc:creator>David.Poole</dc:creator></item><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>&lt;P&gt;I end up scripting just the CREATE component of all views, pocs, functions and then replacint CREATE with ALTER and runing the script in QA to incorporate all column references because it seems like the columns in a view are stored as a positional reference to the column order in the related table, rather than to a table_name.field_name reference.  Does the sp_refreshviews do the same thing?&lt;/P&gt;</description><pubDate>Thu, 19 Feb 2004 08:48:00 GMT</pubDate><dc:creator>williamhoos@yahoo.com</dc:creator></item><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>&lt;P&gt;&lt;STRONG&gt;VERY NICE !&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I wish my boss would read it every time I am asked to add one and "&lt;EM&gt;it shouldn't take me more than a couple of seconds&lt;/EM&gt;" comes after that&lt;/P&gt;&lt;P&gt;&lt;img src='images/emotions/biggrin.gif' height='20' width='20' border='0' title='Big Grin' align='absmiddle'&gt;&lt;/P&gt;</description><pubDate>Thu, 19 Feb 2004 06:25:00 GMT</pubDate><dc:creator>noeld</dc:creator></item><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>&lt;P&gt;How about checking to see if the new column is actually needed?&lt;/P&gt;&lt;P&gt;Look at the design of what is there already and ask if it can encompass the need without the adding the extra column.&lt;/P&gt;&lt;P&gt;A good example of this is the need to add BIT columns.  As you can't index them anyway you may as well have a generic Flags field as an integer and use a bit pattern.  This way your existing design allows for additional flags (bits) at a later date.&lt;/P&gt;&lt;P&gt;I'm just auditing an external application and it appears that there are at least 4 ways of marking a record as being restricted from public viewing.  &lt;/P&gt;&lt;P&gt;It looks like the database was built by 4 natural antagonists with a dislike for computers.&lt;/P&gt;</description><pubDate>Thu, 19 Feb 2004 02:27:00 GMT</pubDate><dc:creator>David.Poole</dc:creator></item><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>Great article! This handy checklist will save me a lot of time - thanks!</description><pubDate>Thu, 19 Feb 2004 00:20:00 GMT</pubDate><dc:creator>broesi</dc:creator></item><item><title>RE: Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>&lt;P&gt;&lt;img src='images/emotions/sick.gif' height='20' width='20' border='0' title='Sick' align='absmiddle'&gt; Adding a column in a hurry without doing checks! &lt;/P&gt;&lt;P&gt;Been there! Done that! and will NEVER DO IT AGAIN! It can cause total destruction and cost you more time in the end.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Wed, 18 Feb 2004 23:32:00 GMT</pubDate><dc:creator>jordanac</dc:creator></item><item><title>Worst Practice - Adding a Column Without Thinking!</title><link>http://www.sqlservercentral.com/Forums/Topic100416-29-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF=http://www.sqlservercentral.com/columnists/awarren/worstpracticeaddingacolumnwithoutthinking.asp&gt;http://www.sqlservercentral.com/c</description><pubDate>Sun, 15 Feb 2004 06:51:00 GMT</pubDate><dc:creator>Andy Warren</dc:creator></item></channel></rss>