<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'fun' and 'April Fools Day'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=fun,April+Fools+Day&amp;orTags=0</link><description>Search results matching tags 'fun' and 'April Fools Day'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>the real story behind the new TinyGUID data type</title><link>http://sqlblog.com/blogs/paul_nielsen/archive/2008/04/01/the-story-behind-the-new-tinyguid-data-type.aspx</link><pubDate>Tue, 01 Apr 2008 05:01:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:5699</guid><dc:creator>Paul Nielsen</dc:creator><description>&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri&gt;A popular new data type that almost didn't make it in SQL Server 2008 will be available in CPT7. The &lt;STRONG&gt;new TinyGUID data type&lt;/STRONG&gt; is similar to the full UniqueIdentifier data type except that, as the name implies, &lt;STRONG&gt;it's only 3 characters long&lt;/STRONG&gt; – 29 characters less than the GUID saving 14 bytes, but still providing 46,656 (36&lt;SUP&gt;3&lt;/SUP&gt;) max values. The NewTinyID() function generates the values.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri&gt;The intended application of the TinyGUID data type is for smaller look-up tables that require uniqueness for replication but not the massive number of values required for a larger table.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri&gt;Microsoft had been pressured for several releases by the various state division of motor vehicles to implement the TinyGUID data type. The application of generating license plate numbers was an obvious need. &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri&gt;“&lt;I style="mso-bidi-font-style:normal;"&gt;If they can slice datetime into date and time data types, why can’t they drop 29 characters off the GUID? Huh?&lt;/I&gt;” – Tom the DBA, Colorado State DMV&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri&gt;But, revealed only here in SQLBlog.com, there’s more to the new data type than just pressing license plates in the prison. The powers that be in some state’s departments were offended by the addition of DMVs within SQL Server 2005, &lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri&gt;“&lt;I style="mso-bidi-font-style:normal;"&gt;How dare they presume to call anything a DMV. We were the original DMV long before Bill Gates got his driver’s license for that fancy-shmancy red Porsche of his.&lt;/I&gt;” –Tom the other DBA, Colorado State DMV. &lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 10pt;"&gt;&lt;FONT face=Calibri&gt;Facing yet another frustrating legal battle against the government, Microsoft reached a compromise with key states to include the TinyGuid data type if the states would drop their law suits.&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:11pt;LINE-HEIGHT:115%;FONT-FAMILY:'Calibri','sans-serif';mso-fareast-font-family:Calibri;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;mso-fareast-theme-font:minor-latin;mso-bidi-theme-font:minor-bidi;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;"&gt;&lt;FONT size=2&gt;So, for those wondering of SQL Server 2008 is truly a major release, that question has now been settled.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE:11pt;LINE-HEIGHT:115%;FONT-FAMILY:'Calibri','sans-serif';mso-fareast-font-family:Calibri;mso-bidi-font-family:'Times New Roman';mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;mso-fareast-theme-font:minor-latin;mso-bidi-theme-font:minor-bidi;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;"&gt;&lt;FONT size=2&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description></item></channel></rss>