<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Bonski's Box</title><link>http://devpinoy.org/blogs/bonskijr/default.aspx</link><description>A Filipino Developer Repatriated</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP1 (Build: 31106.3070)</generator><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/BonskisBox" type="application/rss+xml" /><item><title>Trimming that "untrimmable space"</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/hPMq1jlUvWk/trimming-that-untrimmable-quot-space-quot.aspx</link><pubDate>Wed, 20 May 2009 17:36:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:34811</guid><dc:creator>bonskijr</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=34811</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2009/05/21/trimming-that-untrimmable-quot-space-quot.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;: It seems Community Server stripped the actual CHAR(160) in @someStringWithPad,&amp;nbsp;just so that it will be contrived append&amp;nbsp; CHAR(160) at the &amp;nbsp;@someStringWithPad variable. ;)&lt;/p&gt;
&lt;p&gt;Ever experienced trying the following code to trim a seemingly &amp;quot;space&amp;quot; padded string? &lt;/p&gt;
&lt;div class="csharpcode"&gt;
&lt;pre&gt;&lt;span class="lnum"&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @someStringWithPad &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(25)   

&lt;span class="kwrd"&gt;SET&lt;/span&gt; @someStringWithPad = &lt;span class="str"&gt;&amp;#39;space the final frontier&lt;/span&gt;&amp;nbsp;&amp;#39;
&lt;span class="kwrd"&gt;SET&lt;/span&gt; @someStringWithPad = RTRIM(@someStringWithPad)   

&lt;span class="kwrd"&gt;IF&lt;/span&gt;  LEN(@someStringWithPad) &amp;gt; 24     
     &lt;span class="kwrd"&gt;PRINT&lt;/span&gt; &lt;span class="str"&gt;&amp;#39;ASSERT: expected 24 characters but was &amp;#39;&lt;/span&gt; + &lt;span class="kwrd"&gt;CAST&lt;/span&gt;(LEN(@someStringWithPad) &lt;span class="kwrd"&gt;AS&lt;/span&gt; &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(3))     &lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Guess what will be printed? It will be the ASSERT message. Now what gives here? We&amp;#39;ve already RTRIMed the string, trying LTRIM(RTRIM()) won&amp;#39;t help either. Doing a REPLACE(@someStringWithPad, SPACE(1),&amp;#39;&amp;#39;) , doesn&amp;#39;t help either.&lt;/p&gt;
&lt;p&gt;Try doing the following: &lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; ASCII(&lt;span class="kwrd"&gt;RIGHT&lt;/span&gt;(@someStringWithPad,1))&lt;/pre&gt;
&lt;p&gt;

&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;What do you get? It won&amp;#39;t be CHAR(32) for space, it will be CHAR(160) for a Non-breaking Space. &lt;br /&gt;&lt;br /&gt;So the fix is to issue a REPLACE(@someStringWithPad, CHAR(160), &amp;#39;&amp;#39;) a little tricky if you ask me, and hopefully will save you some headscratching as to why your INNER JOIN or WHERE clauses doesn&amp;#39;t match those that is padded with CHAR(160). &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=34811" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/hPMq1jlUvWk" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/T-Sql/default.aspx">T-Sql</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Sql+Server/default.aspx">Sql Server</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tips/default.aspx">Tips</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/NBSP/default.aspx">NBSP</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Non+breaking+space/default.aspx">Non breaking space</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2009/05/21/trimming-that-untrimmable-quot-space-quot.aspx</feedburner:origLink></item><item><title>In SSMS 2005, set the "Include IF NOT EXISTS clause" to false ALWAYS</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/6yYmzMltUA8/in-ssms-2005-set-the-quot-include-if-not-exists-clause-quot-to-false-always.aspx</link><pubDate>Wed, 13 May 2009 14:49:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:34794</guid><dc:creator>bonskijr</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=34794</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2009/05/13/in-ssms-2005-set-the-quot-include-if-not-exists-clause-quot-to-false-always.aspx#comments</comments><description>&lt;p&gt;This is a frustrating UI experience, setting the &amp;quot;Include IF NOT EXISTS clause&amp;quot; to TRUE in the scripting options of SSMS 2005 results in the following when using a Modify or any scripting options:&lt;/p&gt;
&lt;p&gt;&lt;img src="http://devpinoy.org/resized-image.ashx/__size/550x550/__key/CommunityServer.Blogs.Components.WeblogFiles/bonskijr/sql2005_2D00_modify.JPG" border="0" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;While it does wrap an IF NOT EXISTS statement(a safety check and a &amp;nbsp;must) it deserializes the stored procedure to be executed inside &amp;nbsp;an sp_executesql command. This sucks, since you have to manually remove all of the text before the ALTER and text after the last delimiter everytime you&amp;#39;re going to modify something, worse if the sql contains literal strings you have to manually search/replace all the single quote delimeter. &amp;nbsp;I had to uninstall &lt;a target="_blank" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=264310&amp;amp;wa=wsignin1.0"&gt;SSMSToolpack &lt;/a&gt;(great add-in) which I thought was the culprit, but the thing still remains.&lt;/p&gt;
&lt;p&gt;Good thing I was helped by &lt;a target="_blank" href="http://sqlblog.com/blogs/tibor_karaszi/"&gt;Tibor Karzi &lt;/a&gt;and pointed me to disable that setting. This UX change was already &lt;a target="_blank" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=264310&amp;amp;wa=wsignin1.0"&gt;logged as an issue way back in 2007&lt;/a&gt;, it was reported in SP2 mine is already in SP3. I&amp;#39;m not sure if this still happens in SSMS 2008 though.&lt;/p&gt;
&lt;p&gt;Hope this helps&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=34794" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/6yYmzMltUA8" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/UX+tips+SQL+Server+SSMS/default.aspx">UX tips SQL Server SSMS</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2009/05/13/in-ssms-2005-set-the-quot-include-if-not-exists-clause-quot-to-false-always.aspx</feedburner:origLink></item><item><title>Fresh Start</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/PT8PSbJNRk0/fresh-start.aspx</link><pubDate>Wed, 21 Nov 2007 03:06:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:15133</guid><dc:creator>bonskijr</dc:creator><slash:comments>8</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=15133</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/11/21/fresh-start.aspx#comments</comments><description>&lt;p&gt;Time for a fresh start and hopefully with my structured programming mindset, which almost didn&amp;#39;t land me the job, will categorically be flushed out from my system and really start thinking OOP. I thought I was doing OOP at that time, but my boss upon interview, told me that what I was doing was structured programming. &lt;/p&gt;
&lt;p&gt;Anyhow I&amp;#39;m excited to work &lt;a href="http://www.cormant.com" class="" target="_blank"&gt;here&lt;/a&gt;, now to survive the 3 mos. probation and stay here for good.&lt;/p&gt;
&lt;p&gt;I wonder if I&amp;#39;ll be able to speak T-SQL again :P&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=15133" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/PT8PSbJNRk0" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/reboot/default.aspx">reboot</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/fresh+start/default.aspx">fresh start</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/11/21/fresh-start.aspx</feedburner:origLink></item><item><title>Fix for :"undefined method `exitstatus' for nil:NilClass" when building IronRuby</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/4y5VLn6f9eM/fix-for-quot-undefined-method-exitstatus-for-nil-nilclass-quot-when-building-ironruby.aspx</link><pubDate>Thu, 13 Sep 2007 12:07:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:13751</guid><dc:creator>bonskijr</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=13751</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/09/13/fix-for-quot-undefined-method-exitstatus-for-nil-nilclass-quot-when-building-ironruby.aspx#comments</comments><description>&lt;p&gt;Just downloaded/checked out the latest &lt;a href="http://ironruby.rubyforge.org/" target="_blank"&gt;IronRuby(now on rubyforge)&lt;/a&gt; source and followed the instruction on the intro &lt;a href="http://ironruby.rubyforge.org/getting_started/getting_started.htm" target="_blank"&gt;webcast &lt;/a&gt;by John Lam. It was a simple issuance of&lt;font face="courier new,courier"&gt; rake test&lt;/font&gt; command to see if it will build correctly, much to my dismay it blurted out : &amp;quot;&amp;quot;undefined method `exitstatus&amp;#39; for nil:NilClass&amp;quot; error. Huh?! I tried it several times even with the &lt;font face="courier new,courier"&gt;--trace&lt;/font&gt; switch so that I could see which portion it&amp;#39;s giving an error. I thought also that resgen.exe wasn&amp;#39;t in the path so I tried to build it using VS2005 command line, no luck, one clue  was that it did point out to the rake source file..&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Just to make sure that the source is working correctly, I opened it in VS and compiled it, no problem there. So, I suspect that it was the rake command that&amp;#39;s giving the problem. I issued a &lt;font face="courier new,courier"&gt;gem list&lt;/font&gt; and noted that I haven&amp;#39;t updated it, it was 0.6, it was some time ago since I last issued a &lt;font face="courier new,courier"&gt;gem install rails --include-dependencies --http-proxy[myproxy]&lt;/font&gt;. However&amp;nbsp; instead of updating rails, I simple issued a &lt;font face="courier new,courier"&gt;gem install rake&lt;/font&gt;, to update to the latest, v0.7.3. I then issued a &lt;font face="courier new,courier"&gt;rake test&lt;/font&gt; to confirm, and voila it was able to build correctly.&lt;/p&gt;

&lt;p&gt;Hope this helps.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=13751" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/4y5VLn6f9eM" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/ironruby/default.aspx">ironruby</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/errors/default.aspx">errors</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/09/13/fix-for-quot-undefined-method-exitstatus-for-nil-nilclass-quot-when-building-ironruby.aspx</feedburner:origLink></item><item><title>Computing Time Difference</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/oBLOG6t4dNM/computing-time-difference.aspx</link><pubDate>Sat, 23 Jun 2007 14:29:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:10887</guid><dc:creator>bonskijr</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=10887</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/06/23/computing-time-difference.aspx#comments</comments><description>&lt;p&gt;While Sql Server provides functions to manipulate datetime data types(DateDiff, DateAdd etc.) they don&amp;#39;t have(as far as I know) functions to manipulate time. Very useful when computing time differences. In the past I had to manually datediff parts of the time(hh:mm:ss) which wasn&amp;#39;t scalable especially if you&amp;#39;re going to deal with more than a day of difference. However there&amp;#39;s an easy way to deal with time differences, regardless of the amount of difference(day, month, year, hours etc.) &lt;/p&gt;&lt;p&gt;Sql Server stores it&amp;#39;s datetime datatype as 2 4byte integer, the first portion holds the date and the fraction portion holds the time(ie.. 12345.67890), so to get the time difference:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;



&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;DECLARE&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt; @timeIn &lt;span style="color:blue;"&gt;AS&lt;/span&gt; &lt;span style="color:blue;"&gt;DATETIME&lt;/span&gt;&lt;br /&gt;DECLARE&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt; @timeOut &lt;span style="color:blue;"&gt;AS&lt;/span&gt; &lt;span style="color:blue;"&gt;DATETIME&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;SELECT&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt; @timeIn &lt;span style="color:gray;"&gt;=&lt;/span&gt;&lt;span style="color:red;"&gt;&amp;#39;2007/07/25 20:20:30&amp;#39;&lt;/span&gt;&lt;span style="color:gray;"&gt;,&lt;/span&gt; @timeOut &lt;span style="color:gray;"&gt;=&lt;/span&gt; &lt;span style="color:red;"&gt;&amp;#39;2007/07/25 22:30:30&amp;#39;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p class="MsoNormal"&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;color:blue;"&gt;SELECT&lt;/span&gt;&lt;span style="font-size:10pt;font-family:&amp;#39;Courier New&amp;#39;;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CAST&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;&lt;span style="color:fuchsia;"&gt;CAST&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;@timeOut &lt;span style="color:blue;"&gt;AS&lt;/span&gt; &lt;span style="color:blue;"&gt;float&lt;/span&gt;&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;span style="color:gray;"&gt;-&lt;/span&gt; &lt;span style="color:fuchsia;"&gt;CAST&lt;/span&gt;&lt;span style="color:gray;"&gt;(&lt;/span&gt;@timeIn &lt;span style="color:blue;"&gt;AS&lt;/span&gt; &lt;span style="color:blue;"&gt;float&lt;/span&gt;&lt;span style="color:gray;"&gt;)&lt;/span&gt; &lt;span style="color:blue;"&gt;AS&lt;/span&gt; &lt;span style="color:blue;"&gt;DATETIME&lt;/span&gt;&lt;span style="color:gray;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;results to:&lt;/p&gt;&lt;p&gt;1900-01-01 02:10:00.000&lt;/p&gt;&lt;p&gt;2 hrs and 10 mins.. which you can easily extract using CONVERT(varchar(10),@timeDiff,114)&lt;/p&gt;&lt;p&gt;hth&lt;br /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=10887" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/oBLOG6t4dNM" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Sql+Server/default.aspx">Sql Server</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tips/default.aspx">Tips</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/06/23/computing-time-difference.aspx</feedburner:origLink></item><item><title>Sql Server Data Type Precedence : Redux</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/6j5XWjCuegs/sql-server-data-type-precedence-redux.aspx</link><pubDate>Tue, 17 Apr 2007 12:09:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8902</guid><dc:creator>bonskijr</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=8902</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/04/17/sql-server-data-type-precedence-redux.aspx#comments</comments><description>&lt;P&gt;Previously jokiz bloged about this &lt;A href="http://devpinoy.org/blogs/joeycalisay/archive/2005/11/08/Datatype-Precedence-in-SQL-Server.aspx"&gt;one&lt;/A&gt;, I'd like to add further.&lt;BR&gt;&lt;BR&gt;The &lt;A href="http://msforums.ph/forums/thread/196629.aspx"&gt;same&amp;nbsp;issue cropped up again in the forums&lt;/A&gt;&amp;nbsp;although not the exactly the same as jokiz's experience, this one&amp;nbsp;could really give you hours of head scratching. Previously I was amazed that dynamic ORDER was possible with T-SQL without resorting to dynamic T-Sql using CASE statements:&lt;BR&gt;&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;SELECT&lt;/SPAN&gt; p.ProductId -- int&lt;BR&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,p.ProductName -- varchar&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,p.EncodedDate -- datetime&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,p.IsActive&amp;nbsp;&amp;nbsp;&amp;nbsp; -- bit&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;FROM&lt;/SPAN&gt; dbo.Product p&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;ORDER&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;BY&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:fuchsia;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;CASE&lt;/SPAN&gt; @sortBy&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:red;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;'Id'&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;THEN&lt;/SPAN&gt; p.ProductId&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WHEN&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:red;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;'Date'&lt;/SPAN&gt; &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;THEN&lt;/SPAN&gt; p.EncodedDate&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE&lt;/SPAN&gt; p.ProductName &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;END&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The following will work as long as the @sortBy variable is either "Id" or "Date", once it is neither the engine will raise an &amp;nbsp;"Error converting varchar to datetime." The reason is that the CASE statement has to return&amp;nbsp;an&amp;nbsp;undetermined&amp;nbsp;datatype, it does an implicit conversion according to data type precedence; since DateTime is of higher precedence than varchar, the engine will try to cast the varchar to DateTime hence the error. 
&lt;P&gt;A hack would be to cast all the columns to be returned as varchar so it won't give that error. However, you'd have to pad integers in order for it be sorted correctly (ie:&amp;nbsp;converting integers(1,2,10) to varchar will give you (1,10,2), so it should be padded first 0001,0002,0010). This can get really ugly and slow. With this kind of scenario and many criterias, the best way would be to resort to dynamic T-Sql. 
&lt;P&gt;On a side note, Sql Server also will implicitly cast statement(s) with operators:&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:black;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;&lt;BR&gt;SELECT&lt;/SPAN&gt; columns &lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;FROM&lt;/SPAN&gt; dbo.table001 t&lt;BR&gt;&lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:blue;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;WHERE&lt;/SPAN&gt; t.FileNo = 12345 &lt;SPAN style="FONT-WEIGHT:normal;FONT-SIZE:11px;COLOR:teal;FONT-FAMILY:Courier New;BACKGROUND-COLOR:transparent;"&gt;-- Where FileNo is of Varchar with 0 pads(ie. 0012345)&lt;/SPAN&gt;&lt;/SPAN&gt; 
&lt;P&gt;Assuming there is no FileNo like 'X012345', the query will be parsed and executed without errors. Of course it woud be prudent to explicitly CAST it, just in case we'll have heterogenous data in the future. 
&lt;P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8902" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/6j5XWjCuegs" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/T-Sql/default.aspx">T-Sql</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Sql+Server/default.aspx">Sql Server</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tips/default.aspx">Tips</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Data+Type+Precedence/default.aspx">Data Type Precedence</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/04/17/sql-server-data-type-precedence-redux.aspx</feedburner:origLink></item><item><title>Using ConnectionString section in NHibernate</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/E29upxpHgnE/using-connectionstring-section-in-nhibernate.aspx</link><pubDate>Sun, 08 Apr 2007 15:12:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8828</guid><dc:creator>bonskijr</dc:creator><slash:comments>1</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=8828</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/04/08/using-connectionstring-section-in-nhibernate.aspx#comments</comments><description>&lt;p&gt;Finally NHibernate (1.2+)&amp;nbsp;is able to take advantage of .NET2.0&amp;#39;s connectionStrings section, which previously I&amp;#39;d have to either declare it twice (in either config file or the dedicated hibernate.cfg.xml) All you need to do is, instead of using hibernate.connection.connection_string, use the &amp;quot;newer&amp;quot; hibernate.connection.connection_string_name property.&lt;/p&gt;
&lt;div style="FONT-SIZE:11pt;BACKGROUND:white 0% 50%;COLOR:black;FONT-FAMILY:consolas;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;connectionStrings&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;name&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;myConnectionSTring&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;connectionString&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;Data Source=myServer;Initial Catalog=myDB;Integrated Security=True&lt;/span&gt;&amp;quot;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;providerName&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;System.Data.SqlClient&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt; /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;lt;/&lt;/span&gt;&lt;span&gt;connectionStrings&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span&gt;hibernate-configuration&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;xmlns&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;urn:nhibernate-configuration-2.2&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span&gt;session-factory&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&lt;/span&gt;&lt;span style="COLOR:green;"&gt;&amp;lt;mapping assembly=&amp;quot;WebApplication1&amp;quot; /&amp;gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;--&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;name&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;dialect&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;NHibernate.Dialect.MsSql2000Dialect&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;name&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;connection.provider&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;NHibernate.Connection.DriverConnectionProvider&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;name&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;connection.driver_class&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;NHibernate.Driver.SqlClientDriver&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;name&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;connection.connection_string_name&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;myConnectionString&lt;span style="COLOR:blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;property&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&lt;/span&gt;&lt;span style="COLOR:green;"&gt; HBM Mapping Files &lt;/span&gt;&lt;span style="COLOR:blue;"&gt;--&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span&gt;session-factory&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/&lt;/span&gt;&lt;span&gt;hibernate-configuration&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;b&gt;UPDATE(Thanks to Ayende):&lt;/b&gt;Castle&amp;#39;s ActiveRecord(RC1/trunk) which uses NHibernate, gives you two option of taking advantage of the connectionStrings sections either by(older one)&lt;br /&gt;&lt;/p&gt;
&lt;div style="FONT-SIZE:11pt;BACKGROUND:white 0% 50%;COLOR:black;FONT-FAMILY:consolas;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;key&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;hibernate.connection.connection_string&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;value&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;ConnectionString = ${myConnectionString}&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt; /&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;font color="#000000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;font color="#000000"&gt;or the &amp;quot;newer one&amp;quot; which takes advantage of the NH1.2+ support for the connectionStrings sections:&lt;br /&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;span style="COLOR:blue;"&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;add&lt;/span&gt;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;key&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;hibernate.connection.connection_string_name&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt; &lt;/span&gt;&lt;span style="COLOR:red;"&gt;value&lt;/span&gt;&lt;span style="COLOR:blue;"&gt;=&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt;myConnectionString&lt;/span&gt;&amp;quot;&lt;span style="COLOR:blue;"&gt; /&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;font color="#000000"&gt;It now makes it more manageable, no need to have separate connectionString sections,&amp;nbsp;more importantly though, is that you can take advantage of connectionString/protectedSections of .NET 2.0.&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;br /&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;font color="#000000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;font color="#000000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;br /&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0px;"&gt;&lt;font face="Arial" size="2"&gt;&lt;span style="COLOR:blue;"&gt;&lt;font color="#000000"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;/p&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8828" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/E29upxpHgnE" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tips/default.aspx">Tips</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/NHibernate/default.aspx">NHibernate</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/04/08/using-connectionstring-section-in-nhibernate.aspx</feedburner:origLink></item><item><title>Expression Studio is now part of MSDN Subscriptions</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/yNEGcV4RZLA/expression-studio-is-now-part-of-msdn-subsriptions.aspx</link><pubDate>Wed, 04 Apr 2007 05:28:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8800</guid><dc:creator>bonskijr</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=8800</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/04/04/expression-studio-is-now-part-of-msdn-subsriptions.aspx#comments</comments><description>Via &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/04/03/expression-added-to-msdn.aspx"&gt;Scott Guthrie&lt;/a&gt;&lt;br&gt;&lt;br&gt;Microsoft finally had a changed of heart and included the &lt;a href="http://www.microsoft.com/expression/"&gt;Expression Studio&lt;/a&gt; as part of MSDN subsription. I don't have to worry about that trial expiring anymore, coz I think Expression Web/Blend is a blast for creating WPF/E applications. Thank you Microsoft!&lt;br&gt;&lt;br&gt;Official statement from &lt;a href="http://blogs.msdn.com/somasegar/archive/2007/04/03/listening-to-your-feedback-expression-and-msdn.aspx"&gt;Somasegar&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8800" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/yNEGcV4RZLA" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Technology/default.aspx">Technology</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/MSDN+Subscription/default.aspx">MSDN Subscription</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Expressions+Studio/default.aspx">Expressions Studio</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/WPF_2F00_E/default.aspx">WPF/E</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/04/04/expression-studio-is-now-part-of-msdn-subsriptions.aspx</feedburner:origLink></item><item><title>Sql Server: How To Restore A Non-Production DB Faster</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/-IuB7pcdZpw/sql-server-how-to-restore-a-non-production-db-faster.aspx</link><pubDate>Thu, 01 Mar 2007 11:11:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8306</guid><dc:creator>bonskijr</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=8306</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/03/01/sql-server-how-to-restore-a-non-production-db-faster.aspx#comments</comments><description>Today I was preparing the DB for an implementation of one our module app, I brought along a soon to be production DB . The DB itself was not that big (5GB), however restoring it was taking alot of time. Normally I wouldn't worry about it, but I was on time constraints and the Establishment is working morning only, and I still haven't setup the application. &lt;br&gt;&lt;br&gt;The restore itself finished more than half an hour, and since we always have two environment a production and a demo environment, I dread waiting for it again as I was about to restore the demo environment. Then I thought of something, made a copy of the DB and log file and renamed it appropriately. Then I simply attached the database with a different name. Voila! instant "restore." Saved me alot of time waiting(20+ mins), the only time I waited when the DB/Log files were recopied which took about 10+mins. Got the application and reports setup long before the bells whistled. &lt;img src="http://devpinoy.org/emoticons/emotion-1.gif" alt="Smile" /&gt;&lt;br&gt;&lt;br&gt;And don't forget to take your production DB offline first or else you won't be able to copy as Sql Server locks the file. &lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8306" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/-IuB7pcdZpw" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Sql+Server/default.aspx">Sql Server</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tips/default.aspx">Tips</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/03/01/sql-server-how-to-restore-a-non-production-db-faster.aspx</feedburner:origLink></item><item><title>Getting rid of .svn folders</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/1d5MUmi8vZg/getting-rid-of-svn-folders.aspx</link><pubDate>Mon, 26 Feb 2007 07:50:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8257</guid><dc:creator>bonskijr</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=8257</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/02/26/getting-rid-of-svn-folders.aspx#comments</comments><description>I often copy several OSS projects that I have checked out from their public Subversion repository, back at home so that I have the "bleeding edge" source when working.&amp;nbsp; I find it a hassle to have to include all the .svn files. &lt;a href="http://weblogs.asp.net/jgalloway"&gt;John Galloway&lt;/a&gt; presented a &lt;a href="http://weblogs.asp.net/jgalloway/archive/2007/02/24/shell-command-remove-svn-folders.aspx"&gt;hack &lt;/a&gt;which even includes the command in the Context menu, however &lt;a href="http://sublimesoftware.blogspot.com/"&gt;MattyT&lt;/a&gt; suggested a &lt;a href="http://weblogs.asp.net/jgalloway/archive/2007/02/24/shell-command-remove-svn-folders.aspx#1788748"&gt;better way &lt;/a&gt;and that is to use svn export or even better TortoiseSvn-&amp;gt;Export context menu, which copies all the files except the .svn folders. I didn't know this, I always thought when I use the export command(either with TortoiseSvn/Svn) that it has to connect to repository then exports everything from there.&lt;br&gt;Another case of having the answer in front of you, if you just look a little more closer &lt;img src="http://devpinoy.org/emoticons/emotion-4.gif" alt="Stick out tongue" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8257" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/1d5MUmi8vZg" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/SubVersion/default.aspx">SubVersion</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tips/default.aspx">Tips</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/02/26/getting-rid-of-svn-folders.aspx</feedburner:origLink></item><item><title>The Case of Swallowed Key Combinations</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/H4jOv1w5IWA/the-case-of-swallowed-key-combinations.aspx</link><pubDate>Thu, 22 Feb 2007 14:13:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:8206</guid><dc:creator>bonskijr</dc:creator><slash:comments>9</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=8206</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/02/22/the-case-of-swallowed-key-combinations.aspx#comments</comments><description>My officemate asked my why his key combination was not working, when I looked at the application I told him that it might be because the active control is currently in read-only mode and that it might be rejecting those key combo. However, he refuted that if that were the case, his other key combinations should also not work; and also pointed out that I might be right with my initial assessment of read only fields rejecting key strokes when he made his key combinations on a textbox which isn't read only. He has, by the way, enabled the KeyPreview property of the form to capture those keystrokes first before the any controls. It was kind of odd, that some key combinations were available regardless of the readonly property status of an active control.&lt;br&gt;&lt;br&gt;I did a quick test to observe the KeyEventArgs during KeyDown event with the following code:&lt;br&gt;&lt;br&gt;

&lt;div style="background:white none repeat scroll 0% 50%;font-family:Courier New;font-size:10pt;color:black;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;public&lt;/span&gt; Form1()&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; InitializeComponent();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;this&lt;/span&gt;.KeyDown+=&lt;span style="color:blue;"&gt;new&lt;/span&gt; &lt;span&gt;KeyEventHandler&lt;/span&gt;(&lt;span style="color:blue;"&gt;this&lt;/span&gt;.OnFormKeyDown);&lt;/p&gt;&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;
&lt;/div&gt;

&lt;br&gt;&amp;nbsp;&amp;nbsp;  &lt;br&gt;

&lt;div style="background:white none repeat scroll 0% 50%;font-family:Courier New;font-size:10pt;color:black;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;private&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; OnFormKeyDown(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span&gt;KeyEventArgs&lt;/span&gt; e)&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;this&lt;/span&gt;.txtKeyCode.Text = e.KeyCode.ToString();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;this&lt;/span&gt;.txtKeyData.Text = e.KeyData.ToString();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;this&lt;/span&gt;.txtKeyModifiers.Text = e.Modifiers.ToString();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;this&lt;/span&gt;.txtKeyValue.Text = e.KeyValue.ToString();&lt;/p&gt;
&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:blue;"&gt;this&lt;/span&gt;.txtHandled.Text = e.Handled.ToString();&lt;/p&gt;&lt;p style="margin:0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;br&gt;&lt;p style="margin:0px;"&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin:0px;"&gt;&lt;font face="Arial"&gt;After running the program I've observed the following:&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0px;"&gt;&lt;font face="Arial"&gt;1.) For the key combinations : CTRL+L(my officemates key combo), CTRL+E, CTRL+J, and CTRL+L, were not displaying the correct KeyData&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0px;"&gt;&lt;font face="Arial"&gt;2.) Oddly it(KeyData) was the same as pressing only the CTRL key&lt;/font&gt;&lt;/p&gt;&lt;font face="Arial"&gt;&lt;br&gt;It's as if when those key combinations are made the KeyEventArgs are not filled correctly. Hence I couldn't do the following check:&lt;/font&gt;&lt;br&gt;

&lt;div style="background:white none repeat scroll 0% 50%;font-family:Courier New;font-size:10pt;color:black;-moz-background-clip:-moz-initial;-moz-background-origin:-moz-initial;-moz-background-inline-policy:-moz-initial;"&gt;
&lt;p style="margin:0px;"&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin:0px;"&gt;&amp;nbsp;&lt;span style="color:blue;"&gt;if&lt;/span&gt; (e.Control &amp;amp;&amp;amp; (e.KeyCode == &lt;span&gt;Keys&lt;/span&gt;.L)){ &lt;font color="#008000"&gt;//do something &lt;/font&gt;}&lt;br&gt;&lt;/p&gt;&lt;p style="margin:0px;"&gt;&lt;br&gt;&lt;/p&gt;&lt;p style="margin:0px;"&gt;&lt;font face="Arial"&gt;UPDATED: Comgen, correctly noted that it wasn't a KeyValue returning a constant 17, but actually returns nothing ie:the KeyEventArgs.KeyValue isn't getting a new value but the same value from before. The reason I concluded before that it was a constant 17 because I did a CTRL, then +L, since the previous KeyValue property was 17(for CTRL), the next time I pressed L the KeyValue property remained the same. However, if you pressed any CTRL+combination(except those questionable 4), and without depressing CTRL press either of those 4 letters (ie. CTRL + L) then the previous KeyValue will still remain. I am really stressing this one a bit. :P&lt;/font&gt;&lt;br&gt;&lt;/p&gt;&lt;br&gt;&lt;p style="margin:0px;"&gt;&lt;/p&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=8206" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/H4jOv1w5IWA" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Winforms/default.aspx">Winforms</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Key+Combination+wierdness/default.aspx">Key Combination wierdness</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/02/22/the-case-of-swallowed-key-combinations.aspx</feedburner:origLink></item><item><title>Launchy is da Bomb!</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/TZW_JBjW9sc/launchy-is-da-bomb.aspx</link><pubDate>Tue, 30 Jan 2007 07:52:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:7836</guid><dc:creator>bonskijr</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=7836</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2007/01/30/launchy-is-da-bomb.aspx#comments</comments><description>Just finished reformatting my harddrive, and installed Windows 2003 Server+SP1 as my OS. Primarily to take advantage of Win2K3's superior memory management and security, not to mention stability compared to WinXp+SP2. I have been salivating with the newer tech(NET 3.0, Virtual Server 2005 R2, etc.) and although I have been toying with these in my virtual machine, I felt constrained by the VM itself, so I've decided to use OS w/c supports it natively hence the reasons above.&lt;br&gt;&lt;br&gt;I have made an application checklist that were present in my previous setup, and decided to install one a time. I have heard of &lt;a href="http://www.launchy.net"&gt;Launchy &lt;/a&gt;before, but I've been using &lt;a href="http://www.bayden.com/SlickRun/"&gt;SlickRun &lt;/a&gt;for some time now, you've seen one program launcher you've seen em all, I said. Out of curiosity though, I decided to install Launchy which already reached 1.0 milestone, and boy was I glad I did. Instead of configuring applications to have a magic word like &lt;a href="http://www.bayden.com/SlickRun/"&gt;SlickRun&lt;/a&gt;, it uses all the items in your Start menu as a lookup. It's like a searchable Startmenu ala Vista, but more prettier. It's default look-up directory is the Start Menu directory, and indexes all shortcut files(.lnk) for faster searching, you can configure also to add several lookup directories and include exe files or whatever files for lookup. &lt;br&gt;&lt;br&gt;The only minor(minute) gripe is that I couldn't create a mnemonic for the application ala magic word in &lt;a href="http://www.bayden.com/SlickRun/"&gt;SlickRun&lt;/a&gt;. So instead of "vs.net" I'd have to type "Visual Studio 2005" to get to the application, maybe it can be done in the future. The default launch key of &lt;a href="http://www.launchy.net"&gt;Launchy &lt;/a&gt;is ALT+SPACE, which is basically the same as the system menu, so I changed it to WIN + Q in memory of &lt;a href="http://www.bayden.com/SlickRun/"&gt;SlickRun &lt;/a&gt;:)&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=7836" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/TZW_JBjW9sc" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Technology/default.aspx">Technology</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Launcher/default.aspx">Launcher</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Launchy/default.aspx">Launchy</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2007/01/30/launchy-is-da-bomb.aspx</feedburner:origLink></item><item><title>In Memory of Douglas Reilly</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/AmTgBwNIYYQ/in-memory-of-douglas-reilly.aspx</link><pubDate>Sun, 24 Dec 2006 05:12:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:7382</guid><dc:creator>bonskijr</dc:creator><slash:comments>0</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=7382</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2006/12/24/in-memory-of-douglas-reilly.aspx#comments</comments><description>One of the first book that I bought about .NET is an entry level book entitled:"Designing Microsoft ASP.NET Applications" by Douglas Reilly.&amp;nbsp; Made when&amp;nbsp; .NET was still in its infancy(v1.0), it still nevertheless gave me the foundation for web application using .NET as the platform. Looking at his credentials, he looked like a well rounded guy(used Delphi and .NET platform for his company, MVP ), and his writing style is far from being too serious. &lt;br&gt;&lt;br&gt;However Douglas Reilly was already suffering from a condition called:&lt;a href="http://coloncancer.about.com/od/glossaries/g/Mucinous.htm"&gt;&lt;font color="red"&gt;mucinous adenocarcinoma&lt;/font&gt;&lt;/a&gt;, which led to cancer. His wife kept a &lt;a href="http://blog.programmingasp.net/"&gt;blog&lt;/a&gt; about Douglas' condition. He passed away 23rd Dec 2006, peacefully. &lt;br&gt;&lt;br&gt;Thank you Douglas Reilly, for being such a wonderful author, you have given me the foundation to build upon as ASP.NET progresses. &lt;br&gt;&lt;br&gt;&lt;a href="http://www.amazon.com/Programming-Microsoft-Forms-Douglas-Reilly/dp/0735621799/sr=8-8/qid=1166937256/ref=sr_1_8/102-6194734-5340917?ie=UTF8&amp;amp;s=books"&gt;&lt;span class="srTitle"&gt;Programming Microsoft  Web Forms,&lt;/span&gt;&lt;/a&gt; was his last book. &lt;br&gt;&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=7382" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/AmTgBwNIYYQ" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tribute/default.aspx">Tribute</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2006/12/24/in-memory-of-douglas-reilly.aspx</feedburner:origLink></item><item><title>CodeMash: Have .NET in your Java</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/0mV7jU-2wYo/codemash-have-net-in-your-java.aspx</link><pubDate>Tue, 19 Dec 2006 09:12:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:7282</guid><dc:creator>bonskijr</dc:creator><slash:comments>5</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=7282</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2006/12/19/codemash-have-net-in-your-java.aspx#comments</comments><description>&lt;p&gt;Disregarding the cool although a rather brutal name,&amp;nbsp; CodeMash aims to demystify the different&amp;nbsp; development platforms' practices and methodologies and maybe put an end(or at least minimize) the ".NET is better than Java or Ruby is better than .NET" crap by very passionate platform developers and instead learn from each other's platform.&lt;br&gt;&lt;/p&gt;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;From the &lt;a href="http://codemash.org/default.aspx"&gt;site &lt;/a&gt;itself:&lt;br&gt;&lt;/p&gt;&lt;h1&gt;
                What is CodeMash?&lt;/h1&gt;
            &lt;p&gt;
                CodeMash is a unique event that will educate developers on current practices, methodologies
                and technology trends in variety of platforms and development languages such as
                Java, .NET, Ruby and PHP. Held January 18-19, 2007 at the lush &lt;a href="http://www.kalahariresort.com"&gt;
                    Kalahari&lt;/a&gt; resort in Sandusky, Ohio, attendees will be able to attend a world-class
                technical conference amid Ohio's largest indoor waterpark. So nobody will frown
                if you show up in shorts, sandals, and your loudest t-shirt. You might even win
                a prize for doing so.&lt;/p&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;  &lt;br&gt;&lt;code&gt;&lt;/code&gt;

&lt;a href="http://www.codemash.org/"&gt; &lt;img src="http://www.codemash.org/includes/images/bloggerbadge.gif" alt="CodeMash – I'll be there!"&gt;&lt;/a&gt;&lt;br&gt;&lt;a href="http://www.codemash.org/" rel="tag"&gt;CodeMash&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=7282" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/0mV7jU-2wYo" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/CodeMash/default.aspx">CodeMash</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Contest/default.aspx">Contest</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2006/12/19/codemash-have-net-in-your-java.aspx</feedburner:origLink></item><item><title>Sql Server 2005 Tip:Implicit Conversion of bit data types</title><link>http://feedproxy.google.com/~r/BonskisBox/~3/x8355qE0jiQ/sql-server-2005-tip-implicit-conversion-of-bit-data-types.aspx</link><pubDate>Sun, 10 Dec 2006 05:47:00 GMT</pubDate><guid isPermaLink="false">99090821-4da1-4a75-98c2-a35884625ff7:7098</guid><dc:creator>bonskijr</dc:creator><slash:comments>2</slash:comments><wfw:commentRss>http://devpinoy.org/blogs/bonskijr/rsscomments.aspx?PostID=7098</wfw:commentRss><comments>http://devpinoy.org/blogs/bonskijr/archive/2006/12/10/sql-server-2005-tip-implicit-conversion-of-bit-data-types.aspx#comments</comments><description>Didn't you know that the following statement is now valid for Sql Server 2005 as criteria for a column with bit data type?&lt;br&gt;&lt;br&gt;&lt;font color="#006400" face="Courier New"&gt;SELECT * FROM Orders WHERE Processed = 'true'&lt;/font&gt;&lt;br&gt;&lt;br&gt;The engine is now intelligent enough to implicitly convert it to &lt;br&gt;&lt;br&gt;&lt;font color="#006400" face="Courier New"&gt;SELECT * FROM Orders WHERE Processed = 1&lt;/font&gt;&lt;br&gt;&lt;br&gt;More readable, imo. Too bad it's Sql Server 2005 only.&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://devpinoy.org/aggbug.aspx?PostID=7098" width="1" height="1"&gt;&lt;img src="http://feeds.feedburner.com/~r/BonskisBox/~4/x8355qE0jiQ" height="1" width="1"/&gt;</description><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/T-Sql/default.aspx">T-Sql</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Sql+Server/default.aspx">Sql Server</category><category domain="http://devpinoy.org/blogs/bonskijr/archive/tags/Tips/default.aspx">Tips</category><feedburner:origLink>http://devpinoy.org/blogs/bonskijr/archive/2006/12/10/sql-server-2005-tip-implicit-conversion-of-bit-data-types.aspx</feedburner:origLink></item></channel></rss>
