﻿<?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 Yakov Shlafman / Article Discussions / Article Discussions by Author  / Reverse Engineering Alias Data Yypes in SQL Server 2000 / 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>Thu, 23 May 2013 08:52:05 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>&lt;P&gt;Hi pcwc66, &lt;/P&gt;&lt;P&gt;you can replace the old ADT with a new ADT and then replace the new ADT with another ADT which has the same name as the old ADT but has the definition of the new ADT. The procedure provided in the article allows you to do it.&lt;/P&gt;&lt;P&gt;There is no way to suppress SQL Server from checking ADT existence in other SQL Server objects.&lt;/P&gt;&lt;P&gt;Please read more on ADT in coming parts of this article.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description><pubDate>Mon, 17 Sep 2007 06:30:00 GMT</pubDate><dc:creator>yakov shlafman-228008</dc:creator></item><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>&lt;P&gt;Hi Yakov,&lt;/P&gt;&lt;P&gt;The idea to replace the old ADT with a new ADT is good.  However, for maintenance purpose, I'm thinking whether I can replace the old ADT with a new ADT and then replace the new ADT with another ADT which has the same name as the old ADT but has the definition of the new ADT.&lt;/P&gt;&lt;P&gt;Replacing ADT for columns can follow the article and write a not too complicated script to go thru all tables in a database.  Writing a script to replace ADT in stored procedures may be complicated.  If there is a way to suppress SQL Server to check ADT existence in other SQL Server objects, then othe SQL Server objects may not need to be replaced.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description><pubDate>Fri, 14 Sep 2007 12:22:00 GMT</pubDate><dc:creator>pcwc66</dc:creator></item><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>&lt;P&gt;Hi pcwc66,&lt;/P&gt;&lt;P&gt;you have a very intresting question.&lt;/P&gt;&lt;P&gt;Could you please provide a sample of you stored procedure,&lt;/P&gt;&lt;P&gt;what do you want to accomplish and I will be glad to answer.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description><pubDate>Fri, 14 Sep 2007 09:31:00 GMT</pubDate><dc:creator>yakov shlafman-228008</dc:creator></item><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>&lt;P&gt;If the ADT is also used in stored procedures, is there a way to drop the ADT without changing the stored procedure first? &lt;/P&gt;</description><pubDate>Thu, 13 Sep 2007 15:28:00 GMT</pubDate><dc:creator>pcwc66</dc:creator></item><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>I prefer to use C++ approach - I define macros in a *.h file and have them replaced by actual definition by the preprocessor. For instance, I used to have BIGGEST_VARCHAR defined as VARCHAR(8000). WHen I migrated to 2005, I just replaced that with VARCHAR(MAX) in only one place in my ConstantDefinitions.h file. Next time I generated my deployment script, it had VARCHAR(MAX) wherever I had BIGGEST_VARCHAR in my source. </description><pubDate>Tue, 19 Jun 2007 14:00:00 GMT</pubDate><dc:creator>Alexander Kuznetsov</dc:creator></item><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>I had to deal with ADT's in a previous nightmare job. Oh what a total pain it was! Just use the system types. The biggest pain was having to script removal of the use of the types by every table that used one when needing to change the definition of the type. There were some benefits to using the ADTs, but the drawbacks were much larger.</description><pubDate>Tue, 19 Jun 2007 12:30:00 GMT</pubDate><dc:creator>Vic Kirkpatrick-173212</dc:creator></item><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>Other drawbacks of the ADT:* When you need to "change" the type the effort is more than with native* When dealing with temporary tables you have to have them in model by the time you restart SQL Server or use a startup procedure to add them to tempdb. This is harder than native datatypes* replication has issues with some of these types* Because it hides implemetation details it forces you to find out the definition.* Like posted above not many providers deal with this successfully* Linked servers can be trashed because of thisBecause of all the above (and possibly more that I may be missing) I would vote for the use of ADT as a BAD parctice!Cheers! </description><pubDate>Tue, 19 Jun 2007 11:08:00 GMT</pubDate><dc:creator>noeld</dc:creator></item><item><title>RE: Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>&lt;P&gt;Are ADT's compatible with the current release of Visual Studio .NET?&lt;/P&gt;&lt;P&gt;A couple years ago I had done some C# programming with .NET 2003 and a SS2000 db that used UDT's but .NET did not recognize the UDT's. That actually made programming harder, since you had to go look up the definition for the UDT and use a native .NET data type.&lt;/P&gt;&lt;P&gt;Does Visual Studio .NET 2005 allow you to use ADT's, and how is that done?&lt;/P&gt;</description><pubDate>Tue, 19 Jun 2007 09:13:00 GMT</pubDate><dc:creator>WILLIAM MITCHELL</dc:creator></item><item><title>Reverse Engineering Alias Data Yypes in SQL Server 2000</title><link>http://www.sqlservercentral.com/Forums/Topic369193-247-1.aspx</link><description>Comments posted here are about the content posted at &lt;A HREF="http://www.sqlservercentral.com/columnists/yShlafman/3038.asp"&gt;http://www.sqlservercentral.com/columnists/yShlafman/3038.asp&lt;/A&gt;</description><pubDate>Fri, 25 May 2007 14:46:00 GMT</pubDate><dc:creator>Yakov Shlafman</dc:creator></item></channel></rss>