﻿<?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 Don Peterson / Article Discussions / Article Discussions by Author  / RE: / 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 00:33:50 GMT</lastBuildDate><ttl>20</ttl><item><title>RE:</title><link>http://www.sqlservercentral.com/Forums/Topic268212-132-1.aspx</link><description>&lt;P&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB"&gt;For the biggest part I tend to agree with your statement. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB"&gt;I think it is a good practice to separate the enumerations within an application as opposed to throwing them on a big pile. However the article only mentions one possible solution. One of the problems with this approach arise when the descriptive values of these enumerations are used in the GUI, reporting, etc; it is very language-dependant, thus severely crippling any potential of global use.&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB"&gt;Another situation is when the enumeration is a “behavioural” one; a finite state machine e.g. the acceptance to a meeting in outlook, defined as “Accept”, “Tentative” and “Decline”. It is very unlikely that we need to change this enumeration on the fly without the need to change any business rules / workflows depending on it. In such cases I prefer to a custom data type constrained to the proper values. The loss of meaning can be compensated by using textual representations instead of integer values. The gain &lt;/SPAN&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-ansi-language: EN-US"&gt;implies less joins, less tables, less complex diagrams, etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-ansi-language: EN-US"&gt;Kind regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-ansi-language: EN-US"&gt;   Cornelius van Berkel&lt;/SPAN&gt;&lt;SPAN lang=EN-GB style="FONT-SIZE: 10pt; FONT-FAMILY: Verdana; mso-ansi-language: EN-GB"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;</description><pubDate>Fri, 24 Mar 2006 06:19:00 GMT</pubDate><dc:creator>C. van Berkel</dc:creator></item></channel></rss>