<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>TRUNCATE TABLE master..sysdatabases</title>
        <link>http://weblogs.sqlteam.com/robv/Default.aspx</link>
        <description>...and other neat SQL Server tricks</description>
        <language>en-US</language>
        <copyright>Most Valuable Yak (Rob Volk)</copyright>
        <managingEditor>robvolk@sqlteam.com</managingEditor>
        <generator>Subtext Version 1.9.4.0</generator>
        <image>
            <title>TRUNCATE TABLE master..sysdatabases</title>
            <url>http://weblogs.sqlteam.com/images/RSS2Image.gif</url>
            <link>http://weblogs.sqlteam.com/robv/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>According to Steve Ballmer...</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2006/11/16/27201.aspx</link>
            <description>&lt;font face="Comic Sans MS" color="#ff0000" size="7"&gt;DBA'S BABY!!!&lt;/font&gt;&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/27201.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2006/11/16/27201.aspx</guid>
            <pubDate>Thu, 16 Nov 2006 18:33:55 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2006/11/16/27201.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/27201.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Is XML Evil?</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2003/09/28/182.aspx</link>
            <description>&lt;p&gt;About a month ago I was asked by a contractor I work with who needed to import some very plain, fixed-width, ASCII text file data into SQL Server. In fact, &lt;a href="http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=29387" target="_blank"&gt;this SQL Team post is very much like his situation,&lt;/a&gt; in that he also was going to convert PLAIN, FIXED-WIDTH, ASCII TEXT (did I mention that already?) into XML and THEN import it into SQL Server. I was absolutely floored that someone would even CONSIDER doing it this way. The only analogy I can think of is taking a haiku that perfectly expresses an idea, and then spend months or years writing a multi-volume thesis on it.&lt;/p&gt;
&lt;p&gt;Fortunately (!) we use SQL Server 7.0 so none of the XML extensions were available for him to use. As it turned out I already had a bcp format file that could read the text format he needed to import. So, with ONE LINE OF SQL, I was able to do something he would have had to write over 100 lines of C# to parse the file, XML-ize it, and then save out to ANOTHER FILE so that he could import it (using about 12-20 lines of SQL, or more) Using bcp also would've entailed one DOS prompt command. Even DTS would've been harder to use to accomplish the same thing.&lt;/p&gt;
&lt;p&gt;So, exactly how is XML making this process easier? Where is the ease of use and interoperability it's supposed to provide? I'm completely astounded that so many people have been so thoroughly brainwashed by the XML hype that they not only see it as the best way to do something, but as the ONLY WAY TO DO IT. How did they get that way? They don't even realize they're adding bloat that they will strip out ANYWAY when they put it into a database (man, I LOVE listening to people ask why their databases are so much smaller than an XML version of the same data)&lt;/p&gt;
&lt;p&gt;I can't help but feel that this example is not just a (minor) lack of knowledge but also a (major) lack of common sense, and of course it's not the only one. It's like building a machine that ties your shoes for you...indeed, consider the time, effort, and money needed for research, development and production of such a machine and compare it to those made by the software industry towards XML. Normally I laugh at or ignore the more alarmist types who publish stuff about the declining state of programming and database knowledge, but now I'm not so sure. Like I stated in the SQL Team thread, we've put men on the moon without XML, and done nothing comparable with it. Why does everyone now believe it's essential for even the most mundane tasks? Maybe (?) I'm just getting old(er) and cranky(er).&lt;/p&gt;
&lt;p&gt;Anyway, I'm posting for two reasons: first, for anyone and everyone here to contribute any similar misuses of XML that they know of. By all means be funny, entertaining, scathing, sad, however you feel about it. I'm not looking for an XML-bashing session, but it helps to know when NOT to use a thing just as much as when it should. &lt;/p&gt;
&lt;p&gt;Second, I'm equally interested in anyone who really DOES use XML like it was intended, where it truly is the BEST way to accomplish the goal (and hopefully how you managed to work your way into using it from some other method)&lt;/p&gt;
&lt;p&gt;And if anyone is interested, I do use XML too, but only for one project that requires a heavily formatted HTML document. XML and XSL were the best way to do it. :)&lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/182.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2003/09/28/182.aspx</guid>
            <pubDate>Sun, 28 Sep 2003 18:10:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2003/09/28/182.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/182.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Bill Graziano For Governor of California!</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2003/09/25/165.aspx</link>
            <description>&lt;p&gt;Figured no one would remember this blog next year during the presidential election... :)&lt;/p&gt;
&lt;p&gt;So now our rampant SQL Team egos can rant unchecked by the need to remember we too were once SQL n00bs who didn't know anything!  MWUH HAHAHAHAHAHAHAHA!!!!&lt;/p&gt;
&lt;p&gt;I sense graz dreading the moment he gave me a blog here, and sympathize deeply.&lt;/p&gt;
&lt;p&gt;My current blog title (&lt;a href="http://blogs.sqlteam.com/robv/"&gt;TRUNCATE TABLE master..sysdatabases&lt;/a&gt;) may change in the future, unless overwhelmingly positive feedback or threats ask that it remain, so if you like it, let me know!&lt;/p&gt;
&lt;p&gt;Thanks graz!  Once again you've put another great thing on an otherwise dull Internet!&lt;/p&gt;&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/165.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2003/09/25/165.aspx</guid>
            <pubDate>Fri, 26 Sep 2003 03:31:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2003/09/25/165.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/165.aspx</wfw:commentRss>
        </item>
        <item>
            <title>More Slashdot Fun, Alternative DBs, and a Book Plug</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2004/10/20/2244.aspx</link>
            <description>OK, the review is kinda lame, but the comments on this &lt;A href="http://books.slashdot.org/books/04/10/13/2016211.shtml?tid=198&amp;tid=221&amp;tid=172&amp;tid=6" target=_blank&gt;Slashdot book review&lt;/A&gt; are pretty good, many of them really funny...but oh so true. I won't go into &lt;A href="http://weblogs.sqlteam.com/robv/archive/2003/11/19/576.aspx" target=_blank&gt;my opinions of MySQL&lt;/A&gt;...ooops, too late. 
&lt;P&gt;And I just found &lt;A href="http://www.vistadb.net/default.asp" target=_blank&gt;this link for VistaDB&lt;/A&gt;, version 2.0 of which was &lt;A href="http://www.vistadb.net/Press_040924_VistaDB2Released.asp" target=_blank&gt;recently released&lt;/A&gt;. I haven't heard of it before, anyone try it yet?  Gotta admit, some of the praise ("I...cannot stop being thrilled with the speed") sounds pretty corny though.  Don't know how it stacks up to &lt;A href="http://dbappbuilder.sourceforge.net/Rel.html" target=_blank&gt;REL&lt;/A&gt;, but at least it has PROPERLY FUNCTIONING foreign key constraints. 
&lt;P&gt;Lastly, if you do have to work with different flavors of SQL, or just want to see how the other side(s) live, &lt;A href="http://www.oreilly.com/catalog/sqlnut2/" target=_blank&gt;SQL In a Nutshell&lt;/A&gt; from O'Reilly is a really good reference that covers every little nuance of all the SQL flavors out there: Oracle, SQL Server, MySQL, DB2, PostGreSQL, and some Sybase too. &lt;A href="http://www.sqlpass.org/about/board.cfm" target=_blank&gt;Kevin Kline&lt;/A&gt; is the author, and also President of &lt;A href="http://www.sqlpass.org/" target=_blank&gt;PASS&lt;/A&gt;. He was kind enough to hand out a number of autographed copies at this year's PASS Community Summit, and is a terrific speaker/presenter as well. (probably gives himself the really choice presentations)&lt;/P&gt;&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/2244.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2004/10/20/2244.aspx</guid>
            <pubDate>Thu, 21 Oct 2004 03:27:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2004/10/20/2244.aspx#feedback</comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/2244.aspx</wfw:commentRss>
        </item>
        <item>
            <title>More MySQL on Slashdot</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2004/10/28/2371.aspx</link>
            <description>I almost feel like I'm making a career out of bashing MySQL. &lt;A href="http://it.slashdot.org/it/04/10/26/2223233.shtml?tid=221&amp;tid=198&amp;tid=8"&gt;Make sure to check all the links and read the comments&lt;/A&gt;. Especially &lt;A href="http://it.slashdot.org/comments.pl?sid=127256&amp;cid=10638903"&gt;"Ode to a MySQL Fanboy"&lt;/A&gt; :) Seriously, it is probably the most succinct observation ever made.  
&lt;P&gt;"Ready for production", and still has the same old foreign key problems.  And &lt;A href="http://bugs.mysql.com/bug.php?id=5670"&gt;creating an index can destroy a table&lt;/A&gt;. You'll love the responses from the developer too.&lt;/P&gt;&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/2371.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2004/10/28/2371.aspx</guid>
            <pubDate>Thu, 28 Oct 2004 14:19:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2004/10/28/2371.aspx#feedback</comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/2371.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Command Line SQL Server</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2005/01/12/3972.aspx</link>
            <description>I've set up a &lt;A href="http://weblogs.sqlteam.com/robv/category/122.aspx" target=_blank&gt;new category&lt;/A&gt; on my blog where I plan to post some articles about using command-line utilities to perform various tasks for, or in support of, SQL Server. I'll go over the basics like bcp, osql, DOS commands, and hopefully go more in-depth on some other utilities from the Unix/Linux world that are incredibly useful. I'm hoping to even post a full case study where an existing monolithic, mission-critical VB app is replaced with command-line utilities (depends upon workload and office politics though) I won't post all of them in the main SQL Team blog page, so you should check the above link periodically if you're interested. 
&lt;P&gt;I've recently finished converting one small process from 140 lines of SQL down to about 30 combined lines of SQL and command-line scripting. I hope to have it written up over the weekend (1/16/05) so if you don't see it by then, make sure to harass me about it. :) And if you have any ideas, requests, or questions that you think might make a good topic please feel free to share. Worst case, you get a little free consulting.&lt;/P&gt;&lt;EDIT&gt;Just a note, I'm going to use a standard admonition to "read the previous articles" for anything &lt;A href="http://weblogs.sqlteam.com/robv/category/122.aspx" target=_blank&gt;in this series of articles&lt;/A&gt; on command-line utilities. So if you see a "Part 2", "Part 3", "Part 18" and you don't remember reading the earlier parts, scroll down and read them first. :) Most of them will be cumulative. 
&lt;P&gt;Another note: I will be using the terms "DOS commands/prompt", "command-line/command prompt", and "Unix utilities" interchangeably. Regardless of the term, ALL of the utilities listed in this series are available for and will work on Windows platforms. Win2000, XP, and 2003 definitely, and perhaps even NT, WinME and Win98 too (I haven't tested them).
&lt;P&gt;I should also point out that a command prompt can be utilized in Windows by using the Run... item on the Start menu, and putting "cmd" in the command box. cmd is the command-line interpreter for Windows.&lt;/EDIT&gt;&lt;/P&gt;&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/3972.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2005/01/12/3972.aspx</guid>
            <pubDate>Thu, 13 Jan 2005 03:02:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2005/01/12/3972.aspx#feedback</comments>
            <slash:comments>6</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/3972.aspx</wfw:commentRss>
        </item>
        <item>
            <title>The For Command:  Part 1-1/2 - Deploy Scripts to Multiple Servers</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2005/01/22/4008.aspx</link>
            <description>Article text moved &lt;A href="http://weblogs.sqlteam.com/robv/articles/4099.aspx"&gt;here&lt;/a&gt;.&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/4008.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2005/01/22/4008.aspx</guid>
            <pubDate>Sat, 22 Jan 2005 14:34:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2005/01/22/4008.aspx#feedback</comments>
            <slash:comments>3</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/4008.aspx</wfw:commentRss>
        </item>
        <item>
            <title>The For Command: Part 2 - Multiple Tokens, AutoGenerate Files</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2005/01/22/4011.aspx</link>
            <description>Article text moved &lt;A href="http://weblogs.sqlteam.com/robv/articles/4102.aspx"&gt;here&lt;/a&gt;.&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/4011.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2005/01/22/4011.aspx</guid>
            <pubDate>Sat, 22 Jan 2005 17:03:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2005/01/22/4011.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/4011.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Decisions, Decisions...</title>
            <link>http://weblogs.sqlteam.com/robv/archive/2005/01/26/4025.aspx</link>
            <description>Bored with &lt;A href="http://www.microsoft.com/sql/" target=_blank&gt;SQL Server&lt;/A&gt;? Looking for something new, and/or cheaper? Got a bunch of interesting alternative databases: 
&lt;P&gt;I've mentioned &lt;A href="http://dbappbuilder.sourceforge.net/Rel.html" target=_blank&gt;REL&lt;/A&gt; and &lt;A href="http://www.vistadb.net/default.asp" target=_blank&gt;VistaDB&lt;/A&gt; previously. VistaDB has made some significant improvements since then (including a 60% reduction in engine size, to 400KB!). It's geared towards .Net apps as a replacement for MSDE or light SQL Server duties. Go check it out. 
&lt;P&gt;&lt;A href="http://www-306.ibm.com/software/data/cloudscape/" target=_blank&gt;Cloudscape&lt;/A&gt; was developed by IBM and they released it under an open source license last year. You can get the &lt;A href="http://sourceforge.net/cloudscape_download.php" target=_blank&gt;download here&lt;/A&gt;. It's written in Java and is a relational DB. Looks interesting. 
&lt;P&gt;&lt;A href="http://www.postgresql.org/" target=_blank&gt;PostGreSQL&lt;/A&gt; recently released version 8.0 and now includes a native Win32 version, so no more Cygwin troubles. This one is pretty damn solid and has a bunch of cool things SQL Server doesn't. 
&lt;P&gt;&lt;A href="http://firebird.sourceforge.net/" target=_blank&gt;FireBird&lt;/A&gt; has been around for a bit, it's based upon the Interbase engine that Borland maintained and released to open source. Looks interesting. 
&lt;P&gt;Except for VistaDB, all of the above are freely available under various open-source licenses too. 
&lt;P&gt;And I won't bother mentioning &lt;A href="http://www.mysql.com/" target=_blank&gt;this one&lt;/A&gt; again. :)&lt;/P&gt;UPDATE: Yes I will! It seems MySQL &lt;A href="http://isc.sans.org/diary.php?date=2005-01-26" target=_blank&gt;is catching up with SQL Server after all&lt;/A&gt;!&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/4025.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2005/01/26/4025.aspx</guid>
            <pubDate>Wed, 26 Jan 2005 19:45:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2005/01/26/4025.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/4025.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Sometimes it's just too easy...</title>
            <category>Coolness</category>
            <link>http://weblogs.sqlteam.com/robv/archive/2005/03/15/4257.aspx</link>
            <description>&lt;a href="http://developers.slashdot.org/article.pl?sid=05/03/10/2043202" target="_blank"&gt;Yet another fair and balanced Slashdot discussion about XML databases.&lt;/a&gt;&lt;img src="http://weblogs.sqlteam.com/robv/aggbug/4257.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Most Valuable Yak (Rob Volk)</dc:creator>
            <guid>http://weblogs.sqlteam.com/robv/archive/2005/03/15/4257.aspx</guid>
            <pubDate>Tue, 15 Mar 2005 11:45:00 GMT</pubDate>
            <comments>http://weblogs.sqlteam.com/robv/archive/2005/03/15/4257.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://weblogs.sqlteam.com/robv/comments/commentRss/4257.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>