<?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>SQLBI - Marco Russo : SQL Server 2005</title><link>http://sqlblog.com/blogs/marco_russo/archive/tags/SQL+Server+2005/default.aspx</link><description>Tags: SQL Server 2005</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>SQLBits 2009</title><link>http://sqlblog.com/blogs/marco_russo/archive/2009/02/23/sqlbits-2009.aspx</link><pubDate>Mon, 23 Feb 2009 14:51:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12033</guid><dc:creator>Marco Russo (SQLBI)</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/marco_russo/comments/12033.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/marco_russo/commentrss.aspx?PostID=12033</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/marco_russo/rsscomments.aspx?PostID=12033</wfw:comment><description>&lt;P&gt;This the second time in a row I will not able to attend to &lt;A class="" href="http://www.sqlbits.com/"&gt;SQLBits&lt;/A&gt; - but don't lose this event if you can go to Manchester on March 28th, 2009. The conference is free, but registration is required. A training day (with a reasonable fee) is also scheduled the day before. I hope to attend the next one... &lt;/P&gt;
&lt;P&gt;The reason I cannot go is mainly because a few days later there is the &lt;A class="" href="http://www.sqlconference.it/"&gt;Microsoft SQL Server &amp;amp; Business Intelligence Conference 2009&lt;/A&gt; in Milan and I'm&amp;nbsp;involved in the organization of that conference&amp;nbsp;- but be careful, all the sessions are in Italian, so it is good only if you already know that language! Otherwise, Manchester would be a better option for you!&lt;/P&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=12033" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/Conference+Communities/default.aspx">Conference Communities</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/Conference/default.aspx">Conference</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/Communities/default.aspx">Communities</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SQL+Server+2008/default.aspx">SQL Server 2008</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SQL+Server/default.aspx">SQL Server</category></item><item><title>The "by design" abuse</title><link>http://sqlblog.com/blogs/marco_russo/archive/2007/07/19/the-by-design-abuse.aspx</link><pubDate>Thu, 19 Jul 2007 20:34:00 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:1837</guid><dc:creator>Marco Russo (SQLBI)</dc:creator><slash:comments>8</slash:comments><comments>http://sqlblog.com/blogs/marco_russo/comments/1837.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/marco_russo/commentrss.aspx?PostID=1837</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/marco_russo/rsscomments.aspx?PostID=1837</wfw:comment><description>&lt;P&gt;In the last months, I got the infamous "it's by design" answer for many bugs/issues/irrational behaviors I posted to Microsoft. For most of them I used the &lt;A href="http://connect.microsoft.com/"&gt;Connect&lt;/A&gt; web site, in a couple of cases &lt;A href="http://sqlblog.com/blogs/marco_russo/archive/2007/05/26/is-microsoft-serious-about-bi.aspx"&gt;I opened a formal incident&lt;/A&gt; to Microsoft support.&lt;/P&gt;
&lt;P&gt;There are a lot of story (in and outside Microsoft) about the "it's by design" excuse and most of them are myths and urban legends. Unfortunately, today I received a notification about a bug closure with the "by design" comment that has the consequence to invalidate Microsoft documentation (ok, a small part of...).&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=272753"&gt;The bug is related to SQL Server&lt;/A&gt;. One customer wrote me about a strange issue of the ODBC international date constant syntax &lt;EM&gt;{d 'yyyy-mm-dd'}&lt;/EM&gt;. I never used that, since I prefer the &lt;EM&gt;yyyymmdd&lt;/EM&gt; syntax, but Microsoft effectively suggests&amp;nbsp;using this in the &lt;A href="http://msdn2.microsoft.com/en-us/library/ms191307.aspx"&gt;"Writing International Transact-SQL Statements"&lt;/A&gt; of SQL Server 2005 Books Online.&lt;/P&gt;
&lt;P&gt;As a consultant, I was a little bit shamed because I never used it and I wasn't aware of the issues raised by changing the language settings (you know, this syntax should be used just because it's language neutral...). I double checked the whole thing (I always assume it's my fault before suspecting it's a product bug...) and then I posted this bug on the Connect web site. For the lazy of you, this is the repro code.&lt;/P&gt;&lt;PRE&gt;&lt;BR&gt;&lt;FONT color=black&gt;1:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;USE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; tempdb&lt;BR&gt;&lt;FONT color=black&gt;2:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;GO&lt;BR&gt;&lt;FONT color=black&gt;3:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;EXISTS&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; sysobjects &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'ProblemDate'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;CREATE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;TABLE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; [dbo]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;[ProblemDate]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;(&lt;BR&gt;&lt;FONT color=black&gt;4:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;[DateA] [datetime] &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;NULL&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;,&lt;BR&gt;&lt;FONT color=black&gt;5:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;[DateB] [datetime] &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;NULL&lt;BR&gt;&lt;FONT color=black&gt;6:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;)&lt;BR&gt;&lt;FONT color=black&gt;7:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;END&lt;BR&gt;&lt;FONT color=black&gt;8:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;GO&lt;BR&gt;&lt;FONT color=black&gt;9:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;EXISTS&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ProblemDate&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;BEGIN&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;INSERT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;INTO&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; [ProblemDate] &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;[DateA]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;[DateB]&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;)&lt;BR&gt;&lt;FONT color=black&gt;10:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;VALUES&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;({&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; d &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'2004-09-15'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;,{&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; d &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'2004-03-30'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;})&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;END&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;BR&gt;&lt;FONT color=black&gt;11:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;GO&lt;BR&gt;&lt;FONT color=black&gt;12:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;language&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; english&lt;BR&gt;&lt;FONT color=black&gt;13:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;go&lt;BR&gt;&lt;FONT color=black&gt;14:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;-- The select run correctly&lt;BR&gt;&lt;FONT color=black&gt;15:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;CASE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;WHEN&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ProblemDate&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;DateA &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;d &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'2006-11-21'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'y'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'x'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;END&lt;BR&gt;&lt;FONT color=black&gt;16:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;FROM&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ProblemDate&lt;BR&gt;&lt;FONT color=black&gt;17:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ProblemDate&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;DateB&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;d &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'2004-03-30'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;BR&gt;&lt;FONT color=black&gt;18:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;GO&lt;BR&gt;&lt;FONT color=black&gt;19:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;language&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; italian&lt;BR&gt;&lt;FONT color=black&gt;20:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;GO&lt;BR&gt;&lt;BR&gt;&lt;FONT color=black&gt;21:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#008000;"&gt;-- The same select, got an error&lt;BR&gt;&lt;FONT color=black&gt;22:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;CASE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;WHEN&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ProblemDate&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;DateA &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;{&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;d &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'2006-11-21'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;THEN&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'y'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;ELSE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'x'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;END&lt;BR&gt;&lt;FONT color=black&gt;23:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;FROM&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ProblemDate&lt;BR&gt;&lt;FONT color=black&gt;24:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="COLOR:#0000ff;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; ProblemDate&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;DateB&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt;d &lt;/SPAN&gt;&lt;SPAN style="COLOR:#ff0000;"&gt;'2004-03-30'&lt;/SPAN&gt;&lt;SPAN style="COLOR:#808080;"&gt;}&lt;/SPAN&gt;&lt;SPAN style="COLOR:#000000;"&gt; &lt;BR&gt;&lt;FONT color=black&gt;25:&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;GO&lt;BR&gt;&lt;/PRE&gt;&lt;/SPAN&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;&lt;FONT face="Trebuchet MS"&gt;If you were able to say that line 22 will generate a date conversion error before running the code, I'd be&amp;nbsp;ready to offer you a pizza everywhere you are in the world.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;Now, it seems that I need to prepare a delivery of pizzas to Redmond, since the bug has been closed as "By Design". Unfortunately, there are no comments&amp;nbsp;to explain such a decision.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;I can make several hypotheses:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="COLOR:#000000;"&gt;The bug has been fixed in a future release and someone pressed the wrong button closing the bug. That's the optimistic one.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="COLOR:#000000;"&gt;The bug has been considered not a bug because I need to pay some pizzas to someone.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="COLOR:#000000;"&gt;In that case, I will claim the pizzas from the documentation team, which has misguided those few people that RTFM :-)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;&lt;SPAN style="COLOR:#000000;"&gt;The bug has been closed by someone that read one comment to the bug that pointed out a similar issue on the &lt;EM&gt;'yyyy-mm-dd'&lt;/EM&gt; syntax - but it is not a good explanation of the behavior that differs from documentation of the product.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;I don't know. However, the issue I described is not the real problem; it's just an example to illustrate what happens on the Connect web site. In this case, the answer "by design" has been posted 3 month after the bug submission. Sometime I haven't seen an answer for many more months. However, it really depends on the team, there are other guys who typically answer in a few days (or some week in the worse case).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;I really don't like writing this kind of posts, but I know that&amp;nbsp;many people in Microsoft monitor blogs like mine and this is a message in a bottle for them. Guys, the whole Connect site isn't very useful if you will continue to answer with "by design" / "we don't have resource now" / "it's not on our plan for the next release (!)". The last one is my nightmare, because it means that this necessary feature/bug/whatever will be implemented/corrected in a production code that won't be released until 2011 (assuming that the 3 years gap between SQL Server releases will be maintained).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;Posting on the Connect site has a time cost. To me (writing) and to Microsoft (reading and -sometime- answering). I typically post on Connect&amp;nbsp;only after a search in newsgroups and&amp;nbsp;web sites, only when I'm able to describe a repro of the issue. Until today, I submitted 44 comments (bugs and suggestions) for SQL Server 2005 - I'm not the first, but considering an average of 30 minute per post (and I'm not calculating the time to discover the bug of to recognize the need for a feature/change) it means 22 hours of work. Most of my posts are still active. Many don't have an answer, but I know that Katmai should have improvements covering some of my suggestions. A better update of these submissions would be appreciated...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;I think that the Connect web site is a great resource, but it's not comparable to the kind of support that is offered by some ISV (I use other third-party tools related to SQL Server and .NET programming and they are years-light more responsive). I know, the small size of a company might help in being very efficient in customer support, but I can't believe that a company like Microsoft is not able to improve the Connect efficiency. In the last 7 days there were 48 new bugs and 31 new suggestions for the whole SQL Server platform (which includes SSIS, SSAS, SSRS, SSNS, SSBS). Are these numbers big? I don't know. I would say "no, they are not so big for a company like Microsoft".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;Finally... I know, probably there are other priorities. But, in this case, please don't abuse the "by design" way to fix your bugs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="COLOR:#000000;"&gt;&lt;STRONG&gt;UPDATE - This bug has been fixed in SQL Server 2008!&lt;/STRONG&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=1837" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/Connect/default.aspx">Connect</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/Bug/default.aspx">Bug</category></item><item><title>Drop views from a schema</title><link>http://sqlblog.com/blogs/marco_russo/archive/2007/05/30/drop-views-from-a-schema.aspx</link><pubDate>Wed, 30 May 2007 13:33:34 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:1329</guid><dc:creator>Marco Russo (SQLBI)</dc:creator><slash:comments>0</slash:comments><comments>http://sqlblog.com/blogs/marco_russo/comments/1329.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/marco_russo/commentrss.aspx?PostID=1329</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/marco_russo/rsscomments.aspx?PostID=1329</wfw:comment><description>&lt;p&gt;&lt;/p&gt; &lt;p&gt;Today I wrote a procedure to drop all views from a schema (and the schema itself) in SQL Server 2005. I use views to expose objects to SSAS DSV and it's useful having a cleanup code. Here's the script: DropSchema drop all the views and the schema itself, DropSchemaViews is called by DropSchema and drop all the views within the specified schema. No error checking code, use it at your own risk! &lt;p&gt;&lt;span style="color:#000000;"&gt;&lt;span style="color:#000000;"&gt;&amp;nbsp; &lt;p&gt;&lt;pre&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;IF&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;EXISTS(&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;SELECT&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;*&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;sys.procedures&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;WHERE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NAME&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;'DropSchema'&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;AND&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;SCHEMA_ID&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; 1&lt;/span&gt;&lt;span style="color:#808080;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DROP&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;PROCEDURE&lt;/span&gt;&lt;span style="color:#000000;"&gt; dbo&lt;/span&gt;&lt;span style="color:#808080;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;DropSchema
GO
&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;IF&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;EXISTS(&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;SELECT&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;*&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;sys.procedures&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;WHERE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NAME&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;"&gt;'DropSchemaViews'&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;AND&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;SCHEMA_ID&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; 1&lt;/span&gt;&lt;span style="color:#808080;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DROP&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;PROCEDURE&lt;/span&gt;&lt;span style="color:#000000;"&gt; dbo&lt;/span&gt;&lt;span style="color:#808080;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;DropSchemaViews
GO

&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;CREATE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;PROCEDURE&lt;/span&gt;&lt;span style="color:#000000;"&gt; dbo&lt;/span&gt;&lt;span style="color:#808080;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;DropSchemaViews&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt; @schema &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NVARCHAR&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt;128&lt;/span&gt;&lt;span style="color:#808080;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;AS&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;BEGIN

&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DECLARE&lt;/span&gt;&lt;span style="color:#000000;"&gt; @view &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NVARCHAR&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt;256&lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DECLARE&lt;/span&gt;&lt;span style="color:#000000;"&gt; @cmd &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NVARCHAR&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt;500&lt;/span&gt;&lt;span style="color:#808080;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt; 

    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DECLARE&lt;/span&gt;&lt;span style="color:#000000;"&gt; v &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;CURSOR&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FOR
&lt;/span&gt;&lt;span style="color:#000000;"&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;SELECT&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;name&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;sys.VIEWS
&lt;/span&gt;&lt;span style="color:#000000;"&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;WHERE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;SCHEMA_ID&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
                  &lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;SELECT&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;schema_id&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
                   &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;sys.schemas&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
                   &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;WHERE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NAME&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; @schema&lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;OPEN&lt;/span&gt;&lt;span style="color:#000000;"&gt; v
    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FETCH&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NEXT&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt;&lt;span style="color:#000000;"&gt; v &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;INTO&lt;/span&gt;&lt;span style="color:#000000;"&gt; @view

    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;WHILE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;@@fetch_status&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; 0 &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;BEGIN
&lt;/span&gt;&lt;span style="color:#000000;"&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;SET&lt;/span&gt;&lt;span style="color:#000000;"&gt; @cmd &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; N&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;'DROP VIEW ['&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; @schema &lt;/span&gt;&lt;span style="color:#808080;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; N&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;'].['&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; @view &lt;/span&gt;&lt;span style="color:#808080;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; N&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;']'
&lt;/span&gt;&lt;span style="color:#000000;"&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;EXEC&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt; @cmd &lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#000000;"&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FETCH&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NEXT&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt;&lt;span style="color:#000000;"&gt; v &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;into&lt;/span&gt;&lt;span style="color:#000000;"&gt; @view
    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;END
&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;CLOSE&lt;/span&gt;&lt;span style="color:#000000;"&gt; v
    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DEALLOCATE&lt;/span&gt;&lt;span style="color:#000000;"&gt; v

&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;END
&lt;/span&gt;&lt;span style="color:#000000;"&gt;GO

&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;CREATE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;PROCEDURE&lt;/span&gt;&lt;span style="color:#000000;"&gt; dbo&lt;/span&gt;&lt;span style="color:#808080;"&gt;.&lt;/span&gt;&lt;span style="color:#000000;"&gt;DropSchema&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt; @schema &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NVARCHAR&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt;128&lt;/span&gt;&lt;span style="color:#808080;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;AS&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;BEGIN

&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DECLARE&lt;/span&gt;&lt;span style="color:#000000;"&gt; @view &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NVARCHAR&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt;256&lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;DECLARE&lt;/span&gt;&lt;span style="color:#000000;"&gt; @cmd &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NVARCHAR&lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt;500&lt;/span&gt;&lt;span style="color:#808080;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt; 

    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;EXEC&lt;/span&gt;&lt;span style="color:#000000;"&gt; DropSchemaViews @schema 

    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;IF&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;EXISTS(&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;SELECT&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#ff00ff;"&gt;schema_id&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
              &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;FROM&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#008000;"&gt;sys.schemas&lt;/span&gt;&lt;span style="color:#000000;"&gt; 
              &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;WHERE&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;NAME&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; @schema&lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;BEGIN
&lt;/span&gt;&lt;span style="color:#000000;"&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;SET&lt;/span&gt;&lt;span style="color:#000000;"&gt; @cmd &lt;/span&gt;&lt;span style="color:#808080;"&gt;=&lt;/span&gt;&lt;span style="color:#000000;"&gt; N&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;'DROP SCHEMA ['&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; @schema &lt;/span&gt;&lt;span style="color:#808080;"&gt;+&lt;/span&gt;&lt;span style="color:#000000;"&gt; N&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;']'
&lt;/span&gt;&lt;span style="color:#000000;"&gt;        &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;EXEC&lt;/span&gt;&lt;span style="color:#000000;"&gt; &lt;/span&gt;&lt;span style="color:#808080;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt; @cmd &lt;/span&gt;&lt;span style="color:#808080;"&gt;)
&lt;/span&gt;&lt;span style="color:#000000;"&gt;    &lt;/span&gt;&lt;span style="color:#0000ff;"&gt;END
&lt;/span&gt;&lt;span style="color:#000000;"&gt;    
&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;END
&lt;/span&gt;&lt;span style="color:#000000;"&gt;GO
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;/span&gt;&lt;/span&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=1329" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category></item><item><title>Is Microsoft serious about BI?</title><link>http://sqlblog.com/blogs/marco_russo/archive/2007/05/26/is-microsoft-serious-about-bi.aspx</link><pubDate>Sat, 26 May 2007 11:17:17 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:1324</guid><dc:creator>Marco Russo (SQLBI)</dc:creator><slash:comments>2</slash:comments><comments>http://sqlblog.com/blogs/marco_russo/comments/1324.aspx</comments><wfw:commentRss>http://sqlblog.com/blogs/marco_russo/commentrss.aspx?PostID=1324</wfw:commentRss><wfw:comment>http://sqlblog.com/blogs/marco_russo/rsscomments.aspx?PostID=1324</wfw:comment><description>&lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;The short answer is yes. The long answer is that Microsoft should still improve in many ways. I thought about this many times before writing this post, because I want to be constructive and I hope that my words will not be misunderstood.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;My consideration start from the lack of a BI client. If Microsoft want BI for the masses, a low-cost end-user front-end should be available to navigate data contained in Olap cubes. Excel 2007 is a great product to achieve this goal, but its limit is that it is not "only" a BI client, it is a very big product with a lot of dependencies. This is the only explanation for the situation created by the Service Pack 2 of Analysis Services 2005. This SP breaks a function that worked well with Service Pack 1 and Excel 2007 (see the &lt;/span&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';"&gt;&lt;a href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=262197"&gt;&lt;span style="mso-ansi-language:en-us;"&gt;&lt;font color="#800080"&gt;issue here&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;, that has many votes and comments of other people in the same situation&lt;/span&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;). Well, bugs happen and it is not too strange to me that a SP can break something. It would be better to catch these kind of issues during the beta process... however, it happens.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;Real issues started when I tried to fix the bug.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul&gt; &lt;li class="MsoNormal" style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt;"&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;SQL Server 2005 SP2 cannot be uninstalled. A complete reinstallation of SQL Server 2005 is necessary to restore a working state (or at least Analysis Services 2005 - but do you trust an AS2005 SP1 with SQL2005 SP2? Some of my customers didn't like to be a beta tester).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;li class="MsoNormal" style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt;"&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;I opened an incident to Microsoft Product Support Services. I opened the incident as a Microsoft Partner to simplify the life to my customer, who wouldn't be able to handle a technical conversation with the PSS. Unfortunately, the PSS closed the case answering that the observed behavior is "by design". &lt;/span&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';"&gt;David Gainer (partially) explained the change in &lt;a href="http://blogs.msdn.com/excel/archive/2007/05/06/excel-2007-and-sql-server-analysis-services-2005-service-pack-2.aspx"&gt;&lt;font color="#800080"&gt;this post&lt;/font&gt;&lt;/a&gt;.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;li class="MsoNormal" style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt;"&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;I wasn't so happy of this answer and I asked to the PSS to give a solution to the customer - even as a workaround just to restore the previous behavior. The answer was that asking for an Excel hotfix (because they said that it depends from Excel) required a Premiere contract and I hadn't this level of contract. But my customer&amp;nbsp;HAS a Premiere contract and I opened the same incident through him.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;  &lt;li class="MsoNormal" style="margin:0cm 0cm 0pt;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1;tab-stops:list 36.0pt;"&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;After more than 2 months from the start of this story, I still haven't received a definitive&amp;nbsp;answer from Microsoft.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;This apparent little feature is blocking the upgrade to SP2 on many sites. Any cube that uses Time Intelligence Wizard does not expose a fully navigable cube to Excel 2007. Not to mention all other models built with techniques similar to those used by Time Intelligence Wizard (making use of calculated members on non-measure dimensions).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;I completely understand the (technical) impact of changes on a product big and widely used like Excel 2007. At the same time, I completely understand the disappoint of one of my customers that don't have a premiere contract and receive a "it's by design" answer to their complaints (it has to be seen if the premiere customers will receive a different answer...).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;I see an issue that is more about customer relationship than technical. If you publicize the "BI for the masses" and "democratize BI"&amp;nbsp;mantras but then you split your customers between first and second class, are you still reliable?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;A BI solution, today, must be supported by someone. It is not a "install, click, click, click and go" product, like Word or Excel itself. You need the design and implementation of ETL packages&amp;nbsp;and cubes. These solution are built by Microsoft Partners or other System Integrators. They are the most important contributors to Microsoft success in BI, because without them you would have empty boxes without data. Imagine their feelings when they are unable to solve these issues. At this point there are more chances that partners will adopt products like &lt;/span&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';"&gt;&lt;a href="http://www.dundas.com/Products/Chart/NET/OLAP/NewFeatures.aspx"&gt;&lt;span style="mso-ansi-language:en-us;"&gt;&lt;font color="#800080"&gt;Dundas Olap Services&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt; or &lt;/span&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';"&gt;&lt;a href="http://www.reportportal.com/"&gt;&lt;span style="mso-ansi-language:en-us;"&gt;&lt;font color="#800080"&gt;Report Portal&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt; to deliver data to their customer (especially in the mid-market), for a lot of reasons (customer service, control of user actions and so on). However, I like the improvements made by Excel 2007 in the PivotTable feature - but they are a "little" feature of a big product, thus we are at risk of further design changes in the future just for a Service Pack (of &lt;u&gt;another&lt;/u&gt; product)?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;The other part of the story is (should be) well known. There are too many different ways to create a KPIs. There is ProClarity that will be included in Performance Point Server, removing the option to get a desktop product alternative to Excel 2007 (maybe I'm in error for this - correct me if you have better information). There is no more PivotTable Web Component included in Office 2007.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;A customer who want to start a simple BI project with a tight budget will need to rely only on Excel 2007 and Reporting Services (or he will look at third-party tools). I hope a Small Business Edition of Performance Point Server will be available at the time the product will be released: this could be a good move to introduce the complete Microsoft BI pipeline even in companies who are new to BI and are probably small-medium sized: they will invest more only if they can see a ROI. If the entry level is too high, they see an higher&amp;nbsp;risk to play the game and prefer to wait for other solutions. Today these companies still produces tons of Reporting Services (or Crystal Report) static reports, obtained querying the relational database (often&amp;nbsp;the OLTP one).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-size:10.5pt;font-family:'Trebuchet MS','sans-serif';mso-ansi-language:en-us;"&gt;My conclusion: Microsoft is technologically serious about BI. But Microsoft could have a better BI technology adoption &lt;u&gt;today&lt;/u&gt; just with simple support, customer-care and licensing decisions.&lt;/span&gt;&lt;/p&gt;&lt;img src="http://sqlblog.com/aggbug.aspx?PostID=1324" width="1" height="1"&gt;</description><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SSAS/default.aspx">SSAS</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SSIS/default.aspx">SSIS</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/Integration+Services/default.aspx">Integration Services</category><category domain="http://sqlblog.com/blogs/marco_russo/archive/tags/SQL+Server+2005/default.aspx">SQL Server 2005</category></item></channel></rss>