<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6998389186688540891</id><updated>2011-11-27T16:39:02.883-08:00</updated><category term='C#'/><category term='DDL'/><category term='Haiku'/><category term='Random Synapse'/><category term='Compatability'/><category term='Food'/><category term='KB wshehespbinp'/><category term='Philosophy'/><category term='DUCT HAT'/><category term='Rant'/><category term='INFO'/><category term='puns'/><category term='TSQL'/><category term='DONT'/><title type='text'>StinkySQL - Software is hard</title><subtitle type='html'>Software so bad that you'll want to start a web-site about it.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>49</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-2913586833312475313</id><published>2011-03-06T08:47:00.000-08:00</published><updated>2011-03-06T08:47:49.727-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Soft Issues - everyone's got 'em</title><content type='html'>&lt;h2&gt;Things humans are good at:&lt;/h2&gt;&lt;blockquote&gt;So I'm playing with Microsoft's Visual Studio 2010 and the entity framework. One of the nifty new features I noticed when making a new "&lt;i&gt;ADO .NET Entity Data Model&lt;/i&gt;" was the option to "&lt;i&gt;Pluralize or singularize generated object names&lt;/i&gt;". The created items then just make more sense and it is a welcome addition.&lt;/blockquote&gt;&lt;blockquote&gt;&lt;br /&gt;Never mind the fact that my database table "&lt;i&gt;Octopi&lt;/i&gt;" did not translate to "&lt;i&gt;Octopus&lt;/i&gt;" as we would all expect. That is an edge case for sure and I don't really use Octopi that much. My issue is how it took my table named "&lt;i&gt;Movies&lt;/i&gt;" and ended up with the singular model name "&lt;i&gt;Movy&lt;/i&gt;". You could argue that the spelling is kinda cute, but you couldn't argue it is correct. &lt;/blockquote&gt;&lt;br /&gt;&lt;h3&gt;&lt;br /&gt;&lt;blockquote&gt;I'm just saying ...&lt;/blockquote&gt;&lt;/h3&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-2913586833312475313?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/2913586833312475313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2011/03/soft-issues-everyones-got-em.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2913586833312475313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2913586833312475313'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2011/03/soft-issues-everyones-got-em.html' title='Soft Issues - everyone&apos;s got &apos;em'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-6317850014440920049</id><published>2010-12-14T21:11:00.000-08:00</published><updated>2010-12-14T21:11:29.927-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>You couldn't handle the text file</title><content type='html'>OK - so the deal is to figure out why a simple 2300 line SQL query that took 1:08 to run in the SQLServer Management tool during testing, is running for over an hour on another site and doesn't seem to be any where near completion. They can see it running,&amp;nbsp; but nothing is changing in the database. Testing was on a copy of the same database. Two other running remote databases that are smaller are also not complete and running forever.&lt;br /&gt;&lt;br /&gt;Guess?&lt;br /&gt;&lt;br /&gt;Turns out PRINT statements can be evil if you use enough of them. The update SQL was outputing some good-old-fashioned debugging information using PRINT "something" generously. These were withing a cursor, that was then in a loop that ran another loop - each of these with their own generous set of debugging data for the world to review upon completion.&lt;br /&gt;&lt;br /&gt;While reviewing the output, I noticed that there were quite a few of them. In management studio, you can see the number of lines. In this case, it was over five million. Lines. Figure each line had 20-30 characters on it. This wasn't an issue in the GUI, but the SMO used had to marshall all that data somewhere. Takes some time. If you run it remote across the country, well, that's a long drive.&lt;br /&gt;&lt;br /&gt;We killed the job, remoted locally and ran it in th GUI on the target server. Done in 1:10. Go figure.&lt;br /&gt;&lt;br /&gt;Further testing showed that &lt;br /&gt;a) even the GUI couldn't actually save the output results it showed. It would get an exception error.&lt;br /&gt;b) SMO would probably eventually finish some day on its own - but no one in testing wanted to wait to see and killed it after two hours&lt;br /&gt;c) Taking the print statements out allowed the SMO to finish in 1:20&lt;br /&gt;&lt;br /&gt;Couldn't find any Microsoft reference on a MAX text results size ...&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-6317850014440920049?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/6317850014440920049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2010/12/you-couldnt-handle-text-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6317850014440920049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6317850014440920049'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2010/12/you-couldnt-handle-text-file.html' title='You couldn&apos;t handle the text file'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-6091725515572947686</id><published>2010-11-11T23:39:00.000-08:00</published><updated>2010-11-11T23:39:33.398-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>It gets easier with the title ...</title><content type='html'>The SENIOR DB developer removing duplicates swore that this was going to be much faster:&lt;br /&gt;&lt;blockquote&gt;DELETE #someLocalTempTable&lt;br /&gt;WHERE &amp;nbsp;&amp;nbsp;&amp;nbsp; CONVERT(VARCHAR(20),SomePKIDEN_Id) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + NamesStringColumn &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CONVERT(VARCHAR(20),SomeFKIDEN_Id) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CONVERT(VARCHAR(20),SomeOtherFKIDEN_ID)&lt;br /&gt;&amp;nbsp;&amp;nbsp; IN (&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT CONVERT(VARCHAR(20),SomePKIDEN_Id) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + NamesStringColumn &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CONVERT(VARCHAR(20),SomeFKIDEN_Id) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CONVERT(VARCHAR(20),SomeOtherFKIDEN_ID) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM ##AGlobalTempTable &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;AS OPPOSED TO THIS:&lt;br /&gt;&lt;blockquote&gt;DELETE t&lt;br /&gt;FROM #someLocalTempTable &amp;nbsp;&amp;nbsp;&amp;nbsp; t (NOLOCK)&lt;br /&gt;JOIN ##AGlobalTempTable &amp;nbsp;&amp;nbsp;&amp;nbsp; s (NOLOCK)&lt;br /&gt;ON t.SomePKIDEN_Id &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; = s.SomePKIDEN_Id&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND t.NamedStringColumn = s.NamedStringColumn&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND t.SomeFKIDEN_Id &amp;nbsp;&amp;nbsp;&amp;nbsp; = s.SomeFKIDEN_Id&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND t.SomeOtherFKIDEN_ID= s.SomeOtherFKIDEN_ID&lt;/blockquote&gt;Fast correlated sub-queries. Nice concept.&lt;br /&gt;&lt;i&gt; &lt;/i&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-6091725515572947686?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/6091725515572947686/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2010/11/it-gets-easier-with-title.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6091725515572947686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6091725515572947686'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2010/11/it-gets-easier-with-title.html' title='It gets easier with the title ...'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-5033619949972459398</id><published>2010-03-04T20:18:00.000-08:00</published><updated>2010-03-04T20:18:01.517-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>I swear I don't make this up ...</title><content type='html'>This is the latest software configuration option. It has a yes/no setting.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;AllowBadAddressOnValidation&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;i&gt;LOL &lt;/i&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-5033619949972459398?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/5033619949972459398/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2010/03/i-swear-i-dont-make-this-up.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5033619949972459398'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5033619949972459398'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2010/03/i-swear-i-dont-make-this-up.html' title='I swear I don&apos;t make this up ...'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-3313545671214042301</id><published>2009-10-15T20:46:00.000-07:00</published><updated>2009-10-15T20:46:48.656-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Bugs that make money</title><content type='html'>&amp;nbsp;Here is a find from "P", a potential bug had the database fields been used as intended. Its a big change in reporting that QA has never seen so you know it is in some very obscure code path. Something to be said for code review!&lt;span style="font-family: Arial; font-size: x-small;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;div class="MsoNormal" style="margin-bottom: 0.0001pt; margin-left: 17.6pt; margin-right: 0.9pt; text-indent: -9pt;"&gt;&lt;span style="color: black; font-family: Arial; font-size: x-small;"&gt;&lt;span style="color: black; font-family: Arial; font-size: 10pt;"&gt;I'm looking at a stored procedure that's reporting $$ for a Revenue report by multiplying Rate * Total, instead of Rate * Quantity (which is the same as just Total).&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;br /&gt;So what we are looking at is the potential of ordering 50 $1 gift cards, but reporting $2500 for the entry. Just the kind of thing to get you over that bumpy quarter. ;)&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-3313545671214042301?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/3313545671214042301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/10/bugs-that-make-money.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3313545671214042301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3313545671214042301'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/10/bugs-that-make-money.html' title='Bugs that make money'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-2968433909533614962</id><published>2009-09-16T21:31:00.000-07:00</published><updated>2009-09-16T21:38:31.312-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>No we won't learn</title><content type='html'>Not more than a couple days of dealing with an obscure OSQL parsing bug (see link) that we should have known about, we QA-catch another that we already knew about.&lt;br /&gt;&lt;br /&gt;If you fully qualify a table in another database and give it an alias, OSQL command parsing will not use the alias.  That is you cannot&lt;br /&gt;&lt;blockquote&gt;SELECT something FROM foobarDB.dbo.footable AS otable WHERE otable.someColumn IS NULL&lt;/blockquote&gt;The "otable.xxx" will cause an error as it cannot find that alias.&lt;br /&gt;2005 et.al. seem to be fine.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-2968433909533614962?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://stinkysql.blogspot.com/2009/08/will-we-ever-learn.html' title='No we won&apos;t learn'/><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/2968433909533614962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/09/no-we-wont-learn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2968433909533614962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2968433909533614962'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/09/no-we-wont-learn.html' title='No we won&apos;t learn'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-9169950937292353511</id><published>2009-08-06T06:53:00.000-07:00</published><updated>2009-08-06T06:59:42.599-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Will we ever learn?</title><content type='html'>A while back I posted about a Microsoft &lt;a href="http://stinkysql.blogspot.com/2007/10/go-speedracer-go.html"&gt;bug&lt;/a&gt; in 2000 server installations. Caused a production error again, then this was followed by another (SELECT 1 FROM SYS.SYSINDEXES) the next day.&lt;br /&gt;&lt;br /&gt;Turns out it is related to the OSQL/ISQLW/ISQL installed and not the server. You can run this same script from a machine with the 2005 tools installed and point to the 2000 server and there is no error.  As we deploy using processes that run the file via an isql.exe -I command line, it is a big deal.&lt;br /&gt;&lt;br /&gt;Point is then, when we are testing for compatibility of our scripts, we can't run it from the 2005 management studio. We will get a false positive. We have to run it through the local version of the tools!&lt;br /&gt;&lt;br /&gt;ERROR 1&lt;br /&gt;PRINT 'The error is in parsing the GO incorrectly'&lt;br /&gt;/*&lt;br /&gt;This is a comment&lt;br /&gt;GO&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;ERROR 2&lt;br /&gt;--The error here is the prefix of the SYS. that will not parse correctly&lt;br /&gt;SELECT * FROM SYS.SYSINDEXES&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-9169950937292353511?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/9169950937292353511/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/08/will-we-ever-learn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/9169950937292353511'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/9169950937292353511'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/08/will-we-ever-learn.html' title='Will we ever learn?'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-3922388784059705627</id><published>2009-08-01T05:58:00.000-07:00</published><updated>2009-08-01T06:00:55.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><title type='text'>Summary of Summer</title><content type='html'>A friend of mine, a life-long resident of Los Angeles California, moved Minneapolis Minnesota and I was giving him some perspective on the seasons where I grew up. Discovered something myself in doing so.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;"The thing I grew up with and remember the strongest about the seasons was that when it was the middle of Summer you could hardly wait for winter, and when it was the middle of Winter, you could hardly wait for Summer. Seasons all have their good and bad points, you just have to learn to take advantage of them when they are there. The biggest thing I miss is that change. I have been living in a 22 year long Summer now and its more than a bit annoying. I miss the beauty of the trees in the Fall, fresh fallen snow and the quiet it brings in the Winter, the smell of mud in the spring after the first good thaw. Hmmm, can't think of anything nice about Summer. Oh well."&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-3922388784059705627?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/3922388784059705627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/08/summary-of-summer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3922388784059705627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3922388784059705627'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/08/summary-of-summer.html' title='Summary of Summer'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-4100186892434064095</id><published>2009-07-30T11:21:00.001-07:00</published><updated>2009-07-30T11:21:34.863-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><title type='text'>Just listen to me fool</title><content type='html'>You cannot have a valid process until you have a process that you manage. That means making sure it happens and listening for changes that are needed and adapting to them.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-4100186892434064095?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/4100186892434064095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/07/just-listen-to-me-fool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4100186892434064095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4100186892434064095'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/07/just-listen-to-me-fool.html' title='Just listen to me fool'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-302453807125896705</id><published>2009-05-28T22:26:00.001-07:00</published><updated>2009-05-28T22:28:53.007-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>It could be a rumor ...</title><content type='html'>My favorite programmer asks: Which genius put this into the common library?&lt;br /&gt;&lt;br /&gt;return bool.Parse("true");&lt;br /&gt;&lt;br /&gt;instead of&lt;br /&gt;&lt;br /&gt;return true;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I don't care where you come from, that's funny!&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-302453807125896705?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/302453807125896705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/05/it-could-be-rumor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/302453807125896705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/302453807125896705'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/05/it-could-be-rumor.html' title='It could be a rumor ...'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-281340890802133582</id><published>2009-05-25T13:19:00.000-07:00</published><updated>2009-05-25T13:20:22.096-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><title type='text'>Open Letter to all Credit facilities</title><content type='html'>I find your security challenge questions and requirements an invasion of my privacy. You don't need to know anything about me in that detail. As an industry with everyone asking this kind of information, I am being forced to expose MORE data about myself then ever before and I find that MOST offensive.&lt;br /&gt;&lt;br /&gt;Find another way or foist your draconian rules on those who have been lax enough to be victimized by fraud - not generate data for future attacks for all.&lt;br /&gt;&lt;br /&gt;SS&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-281340890802133582?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/281340890802133582/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/05/open-letter-to-all-credit-facilities.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/281340890802133582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/281340890802133582'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/05/open-letter-to-all-credit-facilities.html' title='Open Letter to all Credit facilities'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-54797797654811545</id><published>2009-05-13T16:48:00.000-07:00</published><updated>2009-05-13T16:53:22.436-07:00</updated><title type='text'>I'm all a-twitter</title><content type='html'>One of our loggin file tables can only display 50 characters, so when someone logged the message:&lt;br /&gt;&lt;br /&gt; "A copy group can't be set to verified.  Please rotate the spot before verifying."&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The users sees&lt;br /&gt;&lt;br /&gt;"A copy group can't be set to verified.  Please rot"&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-54797797654811545?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/54797797654811545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/05/im-all-twitter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/54797797654811545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/54797797654811545'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/05/im-all-twitter.html' title='I&apos;m all a-twitter'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-4376549994905411361</id><published>2009-04-28T12:58:00.000-07:00</published><updated>2009-04-28T13:00:41.667-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><title type='text'>Bad Table!</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_B2ziGmloEkI/SfdgJ9ipfDI/AAAAAAAAACY/MhDQb2MbJ_Y/s1600-h/BadTable.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 304px; height: 204px;" src="http://2.bp.blogspot.com/_B2ziGmloEkI/SfdgJ9ipfDI/AAAAAAAAACY/MhDQb2MbJ_Y/s320/BadTable.bmp" alt="" id="BLOGGER_PHOTO_ID_5329834408271248434" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Someone knowing that I do SQL sent me this ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.straightlinedesigns.com/"&gt;Source&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-4376549994905411361?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/4376549994905411361/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/04/bad-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4376549994905411361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4376549994905411361'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/04/bad-table.html' title='Bad Table!'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_B2ziGmloEkI/SfdgJ9ipfDI/AAAAAAAAACY/MhDQb2MbJ_Y/s72-c/BadTable.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-8441775533569859941</id><published>2009-04-12T12:48:00.000-07:00</published><updated>2009-04-12T12:49:32.941-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Philosophy'/><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><category scheme='http://www.blogger.com/atom/ns#' term='KB wshehespbinp'/><title type='text'>Counter Rant on R&amp;B</title><content type='html'>The Ruby Yacht of Omar Khayyam can be found in Moosylvania, on the waters of Veronica Lake, near the Isle of Lucy, not far from Whynchataka Peak.  One can also visit Bullwinkle’s alma mater Wossamotta  U. or Rocket J. Squirrel’s alma mater, The Cedar Yorpantz Flying School.  R&amp;B was my favorite cartoon when I was little, then it disappeared for about a decade or so, then some network started rerunning it, and the reruns were even funnier because I had collected enough information during that decade to understand all (or most) of the jokes that flew right over my head when I was little.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;The whole thing is so littered with cultural, historical, and cold war references that they should probably put out a set of DVD’s with a footnote option that allow you to turn on explanatory text at the bottom of the screen, like footnotes in other classic literature such as I was forced to read in high school and college.  I wouldn’t need the footnotes for R&amp;B but a lot of people would, especially younger or dumber ones.&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Regarding the ‘Title or: Subtitle’ format, I’m not sure if it was ever a common practice before Bullwinkle.  The other well known example is the complete title ‘Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb’.  R&amp;B came out in 1959 and Dr. S was released in 1964.  When I lived in Menomonie and they were talking about starting up the draft again, my roommates and I and a ‘Hell no We Won’t Go – or – I Always Wanted to See Canada’ party.  We even made and displayed a title sign at the party, magic marker gloriously emblazoned on tan cardboard.  They liked R&amp;B too.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-8441775533569859941?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/8441775533569859941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/04/counter-rant-on-r.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8441775533569859941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8441775533569859941'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/04/counter-rant-on-r.html' title='Counter Rant on R&amp;B'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-7103591398552116402</id><published>2009-04-08T03:24:00.000-07:00</published><updated>2009-04-08T03:28:30.384-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><title type='text'>On Rocky and Bullwinkle</title><content type='html'>I have to explain a lot more references in conversations these days. At first it was funny, now its disturbing. I found myself trying to explain Mr. Peabody just two weeks ago. There are no current cultural references to engage this level of humor with so the attempt falls flat. Now it has to be simple, abrupt and fit in a five second sound-byte to be valid. Everyone knows Gilligan though, that's safe. I pick Maryann by the way - always have.  Don't know anyone who picks Ginger so why even ask. Really.&lt;br /&gt;&lt;br /&gt;The wife sat down with the kids every night for several weeks and they went through the entire Monty Python Collection. All of it. They then did the same with the entire original Star Trek series and have just finished all the movies of the same genres. We feel strongly that this will give then a good religious, political and moral grounding in life. I probably should get the original R&amp;B also so we have someone to talk to about it when we are in the old folks home.&lt;br /&gt;&lt;br /&gt;Maybe Faulty Towers also, and some Bob Newhart. Yeah. That would cover it.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-7103591398552116402?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/7103591398552116402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/04/on-rocky-and-bullwinkle.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7103591398552116402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7103591398552116402'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/04/on-rocky-and-bullwinkle.html' title='On Rocky and Bullwinkle'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-8655818119226875244</id><published>2009-03-30T13:08:00.000-07:00</published><updated>2009-04-29T07:41:43.783-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Food'/><title type='text'>Red Velvet Cake - au natural</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_B2ziGmloEkI/SfhnCHPAAEI/AAAAAAAAACg/O89LaWzSMSA/s1600-h/IMG00954.jpg"&gt;&lt;img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_B2ziGmloEkI/SfhnCHPAAEI/AAAAAAAAACg/O89LaWzSMSA/s320/IMG00954.jpg" alt="" id="BLOGGER_PHOTO_ID_5330123444992344130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;A new desert store opened up in the neighborhood and the best they had was a red velvet cupcake. Then the email thread started about what makes it red. Turns out that before Dutch processed cocoa became widely available the reaction of acidic vinegar with the butter milk would tend to turn the cocoa a reddish color. Most people now use food coloring or beets. The challenge then was to make it without coloration and see what you get.&lt;br /&gt;&lt;a href="file:///C:/Users/Public/Pictures/Blackberry/"&gt;file:///C:/Users/Public/Pictures/Blackberry/&lt;/a&gt;&lt;br /&gt;Turns out is is a reddish brown in the end - but not crazy blood red like you see in the pictures surfing for this one. Takes under two hours including the trip to the store. I recommend starting the icing early so that it's first step can cool while you work, and do the cupcakes 'cause they're just the right size.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;RED VELVET BATTER&lt;br /&gt;3 or 4 tlbs unsweetened cocoa powder&lt;br /&gt;1 or 2 ounces red food coloring (left this out - man that is a LOT OF COLOR!!!)&lt;br /&gt;1 cup buttermilk&lt;br /&gt;1 tsp salt (sea salt preferred)&lt;br /&gt;1 tsp vanilla extract&lt;br /&gt;1 cup oil (I used sesame)&lt;br /&gt;2 cups powdered sugar&lt;br /&gt;2 eggs (large)&lt;br /&gt;2 1/2 cups all-purpose flour, sifted (I did not sift, I am lazy. Used 2cups and stopped when it looked a PDGC or pretty darned good consistency)&lt;br /&gt;1 1/2 tsp baking soda&lt;br /&gt;1 tsp white vinegar&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Grease two 9 inch round pans (I made 21 paper cupcakes)&lt;br /&gt;preheat oven to 350 degrees F.&lt;br /&gt;Make a paste of cocoa and food coloring (I just looked at the cocoa and thought RED)&lt;br /&gt;set aside&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Combine the buttermilk, salt and 1 teaspoon vanilla&lt;br /&gt;In a large bowl, cream together the oil and 2 cups sugar until light and fluffy (by hand!)&lt;br /&gt;Beat in the eggs one at a time. then stir in the cocoa mixture&lt;br /&gt;Beat in the buttermilk mixture  alternately with the flour, mixing just until incorporated. (you'll be tired if you do this by hand and won't over mix)&lt;br /&gt;Stir together baking soda and vinegar (separate from anything else because its like those volcano experiments you do with your kids) then gently fold into the cake batter&lt;br /&gt;Pour the batter into prepared pans (cupcake tins for us, don't fill over 3/4 or 7/8 of the cupcake papers as there is about 40% rise)&lt;br /&gt;Bake in preheated oven for 30 minutes (cupcakes you better check at 15 - mine tool 18 and I know our oven is old and slow) or until a toothpick inserted into the center of the cake comes out clean&lt;br /&gt;Allow to cool completely before frosting (cause it would just melt all over!)&lt;br /&gt;Refrigerate until ready to serve (we ate ours in the first 10 minutes)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;STANDARD ICING&lt;br /&gt;1 cup milk&lt;br /&gt;5 tbls all-purpose flour&lt;br /&gt;1 cup powdered sugar&lt;br /&gt;1 cup butter&lt;br /&gt;1 tsp vanilla extract&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In a saucepan, combine the milk and 5 tbls flour (that I did not use in the batter above cause I didn't really measure)&lt;br /&gt;cook over low hear, stirring constantly, until mixture thickens (it will flip over suddenly then you will need to take it off the heat and keep stirring until the pan your using cools - that can still burn it)&lt;br /&gt;Set aside to cool completely (refrigerators work well for this)&lt;br /&gt;Cream together butter, 1 cup sugar and 1 teaspoon vanilla until light and fluffy (or your arms fall off)&lt;br /&gt;stir in the cooled milk and flour mixture, beating until icing reaches spreading consistency (which doesn't take long)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I don't have the original source recipe location. If you recognize it let me know and I will cite it appropriately.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-8655818119226875244?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/8655818119226875244/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/03/red-velvet-cake-au-natural.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8655818119226875244'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8655818119226875244'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/03/red-velvet-cake-au-natural.html' title='Red Velvet Cake - au natural'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_B2ziGmloEkI/SfhnCHPAAEI/AAAAAAAAACg/O89LaWzSMSA/s72-c/IMG00954.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-8545081923883769889</id><published>2009-03-26T21:26:00.000-07:00</published><updated>2009-03-26T21:30:46.718-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rant'/><category scheme='http://www.blogger.com/atom/ns#' term='KB wshehespbinp'/><title type='text'>My favorite ranter</title><content type='html'>&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;My friend KB who-should-have-everything-he-ever-says-published-but-is-never-published says:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;Well I remember a night, all those years ago, down at ‘Bachelors 3’ when we were sitting around as usual and I predicted the impending extinction of the guitar as the dominant instrument in popular rock music.  Not an unreasonable prediction given the popularity of the euro-synth pop, synth laden dance pop, and a general adoption of synthesizers as instruments rather than the 70’s use of synthesizers as, well, whatever Keith Emerson and Rick Wakeman were doing with them.  Well, I was wrong.  Just about everybody in the music business worth listening to now, new and old, still uses guitars.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;On the same night, or another night just like it, I didn’t make a second prediction.  But I was talking about investments, mutual funds, the financial world in general with (or at) Greg.  While doing so, I was waving my arms around and being generally more animated than should be necessary while talking about such matters.  Now, everyone does that.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-8545081923883769889?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/8545081923883769889/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/03/my-favorite-ranter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8545081923883769889'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8545081923883769889'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/03/my-favorite-ranter.html' title='My favorite ranter'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-2359534874789745050</id><published>2009-03-09T17:19:00.000-07:00</published><updated>2009-03-26T22:00:49.187-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>That's not real food you're eating</title><content type='html'>Got a bug that we don't make a log entry for a module in one case. Turns out they are reading the text of the log to determine how to make calculations for one of their reports.&lt;br /&gt;&lt;br /&gt;Who bases $ calculations on log entries? It's not real data. I think Joe Celko would have a good rant over that.&lt;br /&gt;&lt;br /&gt;The reasoning was that the comparison between created date and updated date was unreliable. Instead of a trigger band-aid which would have left their code the same after the reliability issue was resolved, this solution was devised.&lt;br /&gt;&lt;br /&gt;Two days and many man-hours of research later we found that the reason they had no log was that someone updated the database through an Ad-Hoc SQL query. The log is generated through the GUI changes.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-2359534874789745050?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/2359534874789745050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/03/thats-not-real-food-youre-eating.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2359534874789745050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2359534874789745050'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/03/thats-not-real-food-youre-eating.html' title='That&apos;s not real food you&apos;re eating'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-6239151056479015732</id><published>2009-03-06T12:00:00.001-08:00</published><updated>2009-03-06T12:05:10.426-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DUCT HAT'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Exactly how did you test that?</title><content type='html'>The comment found in the code of an old stored procedure states the following:&lt;br /&gt;&lt;br /&gt;--Using dynamic SQL (faster than static SQL for large tables)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To add to the confusion, the procedure neither had dynamic SQL nor returned more than one record.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-6239151056479015732?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/6239151056479015732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/03/exactly-how-did-you-test-that.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6239151056479015732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6239151056479015732'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/03/exactly-how-did-you-test-that.html' title='Exactly how did you test that?'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-8832254604113832270</id><published>2009-02-27T15:26:00.000-08:00</published><updated>2009-03-13T19:09:20.550-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DUCT HAT'/><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Wonky and still logically incorrect</title><content type='html'>This is another result from the school of cut-and-paste polymorphism. The original IF statement checked for two items in an OR condition, explaining the apparent redundancy in the second IF - but not why anyone would check @@error twice and expect the same value...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;IF (@@error &lt;&gt; 0)&lt;br /&gt;&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;IF @@error &lt;&gt; 0&lt;br /&gt;&lt;br /&gt; BEGIN&lt;br /&gt;&lt;br /&gt; Set @intResultCode = @@error&lt;br /&gt;&lt;br /&gt; Set @chvResultText = 'Error when registering the Station/Date. ' +&lt;br /&gt;&lt;br /&gt;  (SELECT description from master..sysmessages where error = @intResultCode and msglangid = 1033)&lt;br /&gt;&lt;br /&gt; END&lt;br /&gt;END&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;em&gt;Because @@ERROR is cleared and reset on each statement executed, check it immediately following the statement being verified, or save it to a local variable that can be checked later. &lt;/em&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms188790.aspx"&gt;Source: MSDN&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-8832254604113832270?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/8832254604113832270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/02/wonky-and-still-logically-incorrect.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8832254604113832270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8832254604113832270'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/02/wonky-and-still-logically-incorrect.html' title='Wonky and still logically incorrect'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-3269099467294438637</id><published>2009-01-30T12:48:00.000-08:00</published><updated>2009-04-29T07:47:43.304-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><category scheme='http://www.blogger.com/atom/ns#' term='Food'/><title type='text'>Mushroom velouté with buttermilk 'blini'</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_B2ziGmloEkI/SfhocpLrJJI/AAAAAAAAACo/R5PL7MC7hHs/s1600-h/MushhroomV.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 198px;" src="http://4.bp.blogspot.com/_B2ziGmloEkI/SfhocpLrJJI/AAAAAAAAACo/R5PL7MC7hHs/s320/MushhroomV.jpg" alt="" id="BLOGGER_PHOTO_ID_5330125000293426322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;h3&gt;Click on the title for the original LA TIMES publication of this. Then go and make it - if you don't you're a wimp.&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="firstpara"&gt;&lt;p&gt; Mushroom velouté with buttermilk 'blini'&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;Total time: &lt;/b&gt;2 hours, 15 minutes&lt;/p&gt; &lt;p&gt;&lt;b&gt;Servings: &lt;/b&gt;8&lt;/p&gt; &lt;p&gt;&lt;b&gt;Note: &lt;/b&gt;Crème fraîche is available at Trader Joe's, Whole Foods, Bristol Farms, Gelson's and most well-stocked markets. &lt;/p&gt; &lt;p&gt;&lt;b&gt;Buttermilk "blini"&lt;/b&gt;&lt;/p&gt; &lt;p&gt; 1/2 cup flour&lt;/p&gt; &lt;p&gt; 3/4 teaspoon sugar&lt;/p&gt; &lt;p&gt; 1/2 teaspoon baking powder&lt;/p&gt; &lt;p&gt; 1/4 teaspoon salt&lt;/p&gt; &lt;p&gt; 1/8 teaspoon baking soda&lt;/p&gt; &lt;p&gt;6 tablespoons buttermilk&lt;/p&gt; &lt;p&gt;1 egg, lightly beaten, divided&lt;/p&gt; &lt;p&gt;1 tablespoon melted butter&lt;/p&gt; &lt;p&gt;Oil for the griddle&lt;/p&gt; &lt;p&gt;&lt;b&gt;1. Combine the flour, &lt;/b&gt;sugar, baking powder, salt and baking soda in a medium bowl. Combine the buttermilk, 2 tablespoons beaten egg and the butter in a small bowl. (Set aside the remaining egg for use in the soup.) Make a well in the center of the dry ingredients; add the liquid ingredients. Stir just until blended.&lt;/p&gt; &lt;p&gt;&lt;b&gt;2. Heat a griddle &lt;/b&gt;or skillet over medium heat with just enough oil to coat the bottom of the pan. Spoon 1 teaspoon of batter onto the griddle or skillet for each "blini." Cook 30 seconds to 1 minute on each side until both sides are dark golden brown. Repeat until all the batter is used, adding oil to the pan as necessary. Makes about 30 "blini." Reserve in a warm place until ready to use. &lt;/p&gt; &lt;p&gt;&lt;b&gt;Soup and assembly&lt;/b&gt;&lt;/p&gt; &lt;p&gt;4 tablespoons butter, divided&lt;/p&gt; &lt;p&gt;1 cup diced leeks&lt;/p&gt; &lt;p&gt; 1/2 cup diced celery&lt;/p&gt; &lt;p&gt;1 teaspoon minced garlic&lt;/p&gt; &lt;p&gt;1 pound cremini mushrooms, trimmed and sliced&lt;/p&gt; &lt;p&gt; 1/2 pound oyster mushrooms, trimmed and sliced&lt;/p&gt; &lt;p&gt;6 cups chicken broth&lt;/p&gt; &lt;p&gt;1 small bay leaf&lt;/p&gt; &lt;p&gt;1 (2-inch) sprig fresh rosemary&lt;/p&gt; &lt;p&gt;1 tablespoon flour&lt;/p&gt; &lt;p&gt; 1/4 cup heavy cream&lt;/p&gt; &lt;p&gt; 2 tablespoons beaten egg (reserved from blini recipe above)&lt;/p&gt; &lt;p&gt;Salt&lt;/p&gt; &lt;p&gt;White pepper&lt;/p&gt; &lt;p&gt; Scant 2 tablepoons crème fraîche&lt;/p&gt; &lt;p&gt;1 teaspoon thinly sliced chives&lt;/p&gt; &lt;p&gt;8 sprigs parsley&lt;/p&gt; &lt;p&gt;&lt;b&gt;1. Melt 3 tablespoons &lt;/b&gt;of the butter in a large sauce pot over low heat. Add the leeks and celery and sauté about 5 minutes, stirring often, until tender. Add the garlic and cook 1 minute, or until the garlic is fragrant.&lt;/p&gt; &lt;p&gt;&lt;b&gt;2. Add the mushrooms &lt;/b&gt;and sauté until all the vegetables are tender, about 10 minutes.&lt;/p&gt; &lt;p&gt;&lt;b&gt;3. Add the chicken broth&lt;/b&gt;, bay leaf and rosemary and bring to a boil, then reduce the heat and simmer, loosely covered, for 45 minutes. Remove bay leaf and rosemary. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-3269099467294438637?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://articles.latimes.com/2008/jan/16/food/fo-velouterec-16a' title='Mushroom velouté with buttermilk &apos;blini&apos;'/><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/3269099467294438637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/03/mushroom-veloute-with-buttermilk-blini.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3269099467294438637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3269099467294438637'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/03/mushroom-veloute-with-buttermilk-blini.html' title='Mushroom velouté with buttermilk &apos;blini&apos;'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_B2ziGmloEkI/SfhocpLrJJI/AAAAAAAAACo/R5PL7MC7hHs/s72-c/MushhroomV.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-3128720536273056585</id><published>2009-01-19T15:58:00.000-08:00</published><updated>2009-01-19T16:01:30.015-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Why we need code reviews</title><content type='html'>The ever diligent programmer P noted this bit of code today:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;throw(new ArgumentException(errorMessage, "It is a very twisted intersection!"));&lt;/li&gt;&lt;/ul&gt;I would hate to be the person reading through the error logs a year from now ...&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-3128720536273056585?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/3128720536273056585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2009/01/why-we-need-code-reviews.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3128720536273056585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3128720536273056585'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2009/01/why-we-need-code-reviews.html' title='Why we need code reviews'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-6741730127719900522</id><published>2008-12-18T14:23:00.000-08:00</published><updated>2008-12-18T14:27:39.487-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Simplify Simplify Simplify</title><content type='html'>&lt;span style="font-family: verdana; font-weight: bold;"&gt;Here is the code as found ::&lt;/span&gt;&lt;br /&gt;&lt;blockquote&gt;private string FormatTime(object DateTimeValue)&lt;br /&gt;        {&lt;br /&gt;            string result = "        ";&lt;br /&gt;            if (DateTimeValue != null)&lt;br /&gt;            {&lt;br /&gt;                DateTime dt = DateTime.Parse(DateTimeValue.ToString());&lt;br /&gt;                if (dt.Hour &lt; 10)&lt;br /&gt;                    result = FILLER_NUMBER + dt.Hour.ToString() + ":";&lt;br /&gt;                else&lt;br /&gt;                    result = dt.Hour.ToString() + ":";&lt;br /&gt;&lt;br /&gt;                if (dt.Minute &lt; 10)&lt;br /&gt;                    result += (FILLER_NUMBER + dt.Minute.ToString() + ":");&lt;br /&gt;                else&lt;br /&gt;                    result += (dt.Minute.ToString() + ":");&lt;br /&gt;&lt;br /&gt;                if (dt.Second &lt; 10)&lt;br /&gt;                    result += (FILLER_NUMBER + dt.Second.ToString());&lt;br /&gt;                else&lt;br /&gt;                    result += dt.Second.ToString();&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;            return result;&lt;br /&gt;        }&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana; font-weight: bold;"&gt;Here is the refactored version::&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;return DateTime.Parse(DateTimeValue.ToString()).ToString("HH:mm:ss");&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-6741730127719900522?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/6741730127719900522/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/12/simplify-simplify-simplify.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6741730127719900522'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6741730127719900522'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/12/simplify-simplify-simplify.html' title='Simplify Simplify Simplify'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-5063631830441214572</id><published>2008-12-12T09:58:00.000-08:00</published><updated>2008-12-12T10:14:07.371-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>The wheels of the object go round and round</title><content type='html'>Notice that if dsSTData were null you will allocate it, but not use it to look up the ThingyMin :)&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;public int ThingyMin&lt;br /&gt;                {&lt;br /&gt;                    get&lt;br /&gt;                    {&lt;br /&gt;                        int _ThingyMin = 0;&lt;br /&gt;                        if (dsSTData == null)&lt;br /&gt;                        {&lt;br /&gt;                            this.dsSTData = ONAME.ProdName.Common.Business.CONAMESystemDataList.STs;&lt;br /&gt;                        }&lt;br /&gt;                        else&lt;br /&gt;                        {&lt;br /&gt;                            foreach (System.Data.DataRow row in sSTData.Tables[this.DEFAULT_TABLE].Rows)&lt;br /&gt;                            {&lt;br /&gt;                                if (Convert.ToInt32(row[0]) == this._STID)&lt;br /&gt;                                {&lt;br /&gt;                                    _ThingyMin = int.Parse(row[OllCommon.COL_THINGY_MIN].ToString());&lt;br /&gt;                                    break;&lt;br /&gt;                                }&lt;br /&gt;                            }&lt;br /&gt;                        }&lt;br /&gt;                        return _ThingyMin;&lt;br /&gt;                    }&lt;br /&gt;                }&lt;br /&gt;    &lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-5063631830441214572?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/5063631830441214572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/12/wheels-of-object-go-round-and-round.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5063631830441214572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5063631830441214572'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/12/wheels-of-object-go-round-and-round.html' title='The wheels of the object go round and round'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-4033053277615631664</id><published>2008-12-10T16:39:00.000-08:00</published><updated>2008-12-10T16:44:53.390-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DUCT HAT'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>How to ruin a set of data</title><content type='html'>From my bud. Not strictly SQL but close enough. He would like to know:&lt;br /&gt;&lt;br /&gt;I'm not asking a lot.  I just would rather see &lt;blockquote&gt;"if (this.Order.IsPacked)" &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;instead of &lt;blockquote&gt;"if (&lt;br /&gt;this._DataSet.Tables[OrderCommon.TBL_ORDER].Rows[OrderCommon.DEFAULT_ROW][OrderCommon.COL_IS_PACKED] == DBConst.DBNull)"&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-4033053277615631664?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/4033053277615631664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/12/how-to-ruin-set-of-data.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4033053277615631664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4033053277615631664'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/12/how-to-ruin-set-of-data.html' title='How to ruin a set of data'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-343577430502019876</id><published>2008-11-22T08:31:00.000-08:00</published><updated>2008-11-22T08:40:21.353-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Built In Bugs :: VarChar</title><content type='html'>&lt;p class="MsoNormal"&gt;Alexander Kuznetsov pointed this one out on his blog. He goes on to a longer explanation and how to test for the issue in general (see link). SS&lt;br /&gt;&lt;/p&gt;&lt;blockquote&gt;In Transact SQL you can assign a 10-character value to a VARCHAR(5) variable, as follows:    &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New'; color: blue;"&gt;DECLARE&lt;/span&gt;&lt;span style="font-size: 10pt; line-height: 115%; font-family: 'Courier New';"&gt; @c &lt;span style="color: blue;"&gt;VARCHAR&lt;/span&gt;&lt;span style="color: gray;"&gt;(&lt;/span&gt;5&lt;span style="color: gray;"&gt;);&lt;/span&gt; &lt;span style="color: blue;"&gt;SET&lt;/span&gt; @c&lt;span style="color: gray;"&gt;=&lt;/span&gt;&lt;span style="color: red;"&gt;'1234567890'&lt;/span&gt;&lt;span style="color: gray;"&gt;;&lt;/span&gt; &lt;span style="color: blue;"&gt;PRINT&lt;/span&gt; @c&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p class="MsoNormal"&gt;&lt;span style="font-size: 8pt; line-height: 115%; font-family: 'Courier New';"&gt;12345&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt;    &lt;p class="MsoNormal"&gt;&lt;o:p&gt; &lt;/o:p&gt;The value will be silently truncated without raising an error. Because of this behavior it may be very easy to make mistakes.&lt;br /&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-343577430502019876?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://sqlblog.com/blogs/alexander_kuznetsov/archive/2008/11/19/defensive-database-programming-fun-with-changing-column-widths.aspx' title='Built In Bugs :: VarChar'/><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/343577430502019876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/11/built-in-bugs-varchar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/343577430502019876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/343577430502019876'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/11/built-in-bugs-varchar.html' title='Built In Bugs :: VarChar'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-1061560728744212386</id><published>2008-11-21T12:10:00.000-08:00</published><updated>2008-11-21T12:13:44.955-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Please use comments ...</title><content type='html'>Many management types continually rant about leaving comments in the code so that the next person will be able to figure out what is going on. Sometimes it just proves something else ...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="font-size: 10pt; font-family: Arial;"&gt;'* Comments:    IMPORTANT:  The global constants are being temporarily prefaced with "" until&lt;br /&gt;'*                  all the reports can be integrated with calls to the delegate methods.  Afterwards,&lt;br /&gt;'*                  a global search/replace of "" with "" should rename the constants to coding&lt;br /&gt;'*                  standards compliancy.&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-1061560728744212386?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/1061560728744212386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/11/please-use-comments.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/1061560728744212386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/1061560728744212386'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/11/please-use-comments.html' title='Please use comments ...'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-9123019616805223860</id><published>2008-09-16T07:12:00.000-07:00</published><updated>2008-09-16T12:33:34.925-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DUCT HAT'/><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DDL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>This is going to hurt a little</title><content type='html'>Imaging a 5100 line stored procedure that is doing a conversion of some data. After hundreds of site updates, you get called in to find a wee little bug that seems to have no consistent  behavior but it is definitely in the conversion. Then some where in that 5100 lines of code you find these snippets - several hundreds of lines apart but interacting just as viciously:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;CREATE TABLE #Duplicates&lt;br /&gt;(&lt;br /&gt; RecID              INT    IDENTITY (1,1)&lt;br /&gt;,i_id                  INT&lt;br /&gt;, and other things&lt;br /&gt;)&lt;/blockquote&gt;&lt;br /&gt;..eventually some insert code fills this temp table. Later we find this new table:&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;CREATE TABLE #Itemslist&lt;br /&gt;(&lt;br /&gt; RecID                INT    IDENTITY(1,1)&lt;br /&gt;,INo                    INT&lt;br /&gt;, and other things&lt;br /&gt;)&lt;/blockquote&gt;&lt;br /&gt;...which also gets properly loaded. Eventually final results are loaded into yet another temporary table. I will spare you the details and just point out the join here;&lt;br /&gt;&lt;blockquote&gt;SELECT some stuff&lt;br /&gt;FROM    #Itemslist il&lt;br /&gt;JOIN     #Duplicates    d          ON il.RecID = d.RecID&lt;br /&gt;JOIN     etcetera&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Fortunately the duplicate table was very small which is the only thing that contained the error that propagated from this.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-9123019616805223860?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/9123019616805223860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/09/this-is-going-to-hurt-little.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/9123019616805223860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/9123019616805223860'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/09/this-is-going-to-hurt-little.html' title='This is going to hurt a little'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-282761701825734099</id><published>2008-09-12T13:22:00.000-07:00</published><updated>2008-09-12T13:26:48.884-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Where else does one equal zero?</title><content type='html'>From more of the old code from Hyberia: We figure that this is the lazy man's (person's) method to making insert tables without all that messy typing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT    rlk.*, rlk.i_id as i_id2        --CREATE #RSLAG table&lt;br /&gt;INTO    #RSLAG                --note.. the i_id2 column was added to&lt;br /&gt;FROM    RSLAG rlk            --cause the original i_id column to be&lt;br /&gt;WHERE    1 = 0                    --created without the IDENTITY property&lt;br /&gt;&lt;br /&gt;SELECT    rlk.*                    --CREATE #RSLAG_total table&lt;br /&gt;INTO    #RSLAG_total&lt;br /&gt;FROM    #RSLAG rlk&lt;br /&gt;WHERE    1 = 0&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-282761701825734099?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/282761701825734099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/09/where-else-does-one-equal-zero.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/282761701825734099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/282761701825734099'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/09/where-else-does-one-equal-zero.html' title='Where else does one equal zero?'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-7113936506586912295</id><published>2008-09-10T17:27:00.000-07:00</published><updated>2008-09-12T13:27:17.175-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DDL'/><title type='text'>Query to NoWhere</title><content type='html'>In a three hundred line stored procedure (not bad) one developer noted that the performance issue came down to the corrolated sub-query. Upon inspection, this left-joined monster was not even referenced by any output column, where clause or reference.&lt;br /&gt;&lt;br /&gt;What a FIND!&lt;br /&gt;&lt;br /&gt;SELECT    &lt;br /&gt;   a_bunch_of_stuff&lt;br /&gt;FROM  #RPT_ORDERS ot&lt;br /&gt;     LEFT JOIN (SELECT&lt;br /&gt;                   Another_long_painful_query&lt;br /&gt;                  FROM   #RPTEXTRA toc&lt;br /&gt;                    INNER JOIN A_BUNCH_OF_STUFF_TO_MAKE_IT_EVEN_SLOWER tm&lt;br /&gt;                  WHERE  toc.x = 400&lt;br /&gt;                  GROUP BY toc.y&lt;br /&gt;                    ,tm.starts&lt;br /&gt;                    ) mt ON tmt.ord = mt.ord&lt;br /&gt;               AND tmt.starts = mt.starts&lt;br /&gt;ORDER BY more_stuff&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-7113936506586912295?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/7113936506586912295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/09/query-to-nowhere.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7113936506586912295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7113936506586912295'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/09/query-to-nowhere.html' title='Query to NoWhere'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-7381013724392670874</id><published>2008-08-15T17:52:00.000-07:00</published><updated>2008-09-12T13:27:31.755-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Code Blurg</title><content type='html'>When you are not really sure what you want, you can try it in more than one place! At the worst you get an additional line of code for your metrics.&lt;br /&gt;&lt;br /&gt;&lt;style&gt; &lt;!--  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal  {margin:0in;  margin-bottom:.0001pt;  font-size:12.0pt;  font-family:"Times New Roman";} a:link, span.MsoHyperlink  {color:blue;  text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed  {color:purple;  text-decoration:underline;} span.EmailStyle17  {mso-style-type:personal-compose;  font-family:Arial;  color:windowtext;} @page Section1  {size:8.5in 11.0in;  margin:1.0in 1.25in 1.0in 1.25in;} div.Section1  {page:Section1;} --&gt; &lt;/style&gt;&lt;div class="Section1"&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;insert  #DeleteSpots&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;Select  os.Linked_ID,  os.BID&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;            from #olspot  ols&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;            join dbo.ORDERED os  on os.bid = ols.bid&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;            AND      os.B_Position IN(0,1,3)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;            where os.Linked_ID  is not null&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class="MsoNormal"&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;&lt;span style=";font-family:Arial;font-size:10;"  &gt;            and os.B_Position  = 3&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-7381013724392670874?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/7381013724392670874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/08/code-blurg.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7381013724392670874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7381013724392670874'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/08/code-blurg.html' title='Code Blurg'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-5817898427093488833</id><published>2008-07-11T14:50:00.000-07:00</published><updated>2008-07-12T09:16:54.697-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><category scheme='http://www.blogger.com/atom/ns#' term='Haiku'/><title type='text'>Resolution notes are required for all fixes</title><content type='html'>This came from our crazed supervisor today ...&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;From now on, please make all resolution notes in Haiku form. By way of example:&lt;br /&gt;&lt;/blockquote&gt;&lt;blockquote&gt;Try it again please.&lt;br /&gt;Whatever the problem was;&lt;br /&gt;Works on my machine.&lt;br /&gt;&lt;/blockquote&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-5817898427093488833?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/5817898427093488833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/07/resolution-notes-are-required-for-all.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5817898427093488833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5817898427093488833'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/07/resolution-notes-are-required-for-all.html' title='Resolution notes are required for all fixes'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-3403224802539035930</id><published>2008-07-09T20:41:00.000-07:00</published><updated>2008-07-09T20:50:19.930-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DUCT HAT'/><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Why have all the commission rates gone?</title><content type='html'>I liked this one. This is what happens when you start cutting and pasting code without looking at the end result real close.&lt;br /&gt;&lt;br /&gt;In this situation, the developer was removing a variable that had a default value of zero. Guess they figured that the safest thing to do was to replace it with that number. There were a couple of places in this 460 line procedure to change. They must have checked the top half which was just fine, but the original designer had basically copied the first 200 lines and duplicated them in the second half - and he did not use the variable the same way. The maintenance developer did not check this second half which ended up as below.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Snippet&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;&lt;blockquote&gt;SELECT&lt;br /&gt;     round(convert(money,sum(r.rate) * 0),2)&lt;br /&gt;    ,0&lt;br /&gt;    ,round(convert(money,sum((r.rate * 0) * isnull(r.ag_com_pct,0))),2)&lt;br /&gt;    ,count(*)&lt;br /&gt;FROM&lt;br /&gt;    Whatever&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-3403224802539035930?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/3403224802539035930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/07/why-have-all-commission-rates-gone.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3403224802539035930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3403224802539035930'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/07/why-have-all-commission-rates-gone.html' title='Why have all the commission rates gone?'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-5075819393556120801</id><published>2008-07-06T18:42:00.000-07:00</published><updated>2008-07-06T19:05:10.021-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>The French know the secret to destroying database performance!</title><content type='html'>&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/40Lnoyv-sXg&amp;amp;hl=en"&gt;&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/40Lnoyv-sXg&amp;amp;hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;I saw this on GOOGLE VIDEOS and thought it was the funniest SQL performance technical explanation I had ever seen. His name is Stephane Faroult at &lt;a href="http://www.roughsea.com/"&gt;RoughSea Ltd&lt;/a&gt;. It is also nice in that he turned the problem on its head and looked at the performance problem backwards. How to make it worse.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-5075819393556120801?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/5075819393556120801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/07/french-know-secret-to-destroying.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5075819393556120801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5075819393556120801'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/07/french-know-secret-to-destroying.html' title='The French know the secret to destroying database performance!'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-17857511868494100</id><published>2008-07-06T10:22:00.000-07:00</published><updated>2008-07-12T09:17:55.367-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Philosophy'/><title type='text'>Who would have believed it</title><content type='html'>&lt;span style=";font-family:&amp;quot;;" &gt;I was reading Aristotle and thinking how I could create a software development paradigm based on his nicomachean ethics. Then I ran into an LA Times blog about these guys and their radio program. I think it terribly interesting to see &lt;span style="font-style: italic;"&gt;where&lt;/span&gt; this show airs - plus its a lot of fun to listen to. All the past shows are available for download.&lt;br /&gt;&lt;blockquote&gt;"This is not a lecture or a college course, it's philosophy in action! Philosophy Talk is a fun opportunity to explore issues of importance to your audience in a thoughtful, friendly fashion, where thinking is encouraged".&lt;/blockquote&gt;&lt;a href="http://www.philosophytalk.org/"&gt;http://www.philosophytalk.org/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-17857511868494100?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://www.philosophytalk.org/' title='Who would have believed it'/><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/17857511868494100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/07/who-would-have-believed-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/17857511868494100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/17857511868494100'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/07/who-would-have-believed-it.html' title='Who would have believed it'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-3364401415384556872</id><published>2008-05-09T14:51:00.000-07:00</published><updated>2008-12-08T15:59:06.358-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><category scheme='http://www.blogger.com/atom/ns#' term='puns'/><title type='text'>A Shortage of ees</title><content type='html'>&lt;a href="http://lifehasbumps.spaces.live.com/blog/cns%213D8B4A2BFACE07DE%21136.entry"&gt;&lt;br /&gt;&lt;/a&gt; &lt;div class="bvMsg" id="msgcns!3D8B4A2BFACE07DE!136"&gt; &lt;div&gt;Well, now ush has really done it. Apparently gloal warming has een sighted  in unexpected areas. Everody is talking aout the mysterious disappearance of  ees. There are less and less of them and the ig question is why? I dont know why  people get all worked up aout this kind of thing. Just get a new keyoard.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_B2ziGmloEkI/SG5qiI602LI/AAAAAAAAABg/effe3fcl6MU/s1600-h/Keys.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 117px; height: 97px;" src="http://1.bp.blogspot.com/_B2ziGmloEkI/SG5qiI602LI/AAAAAAAAABg/effe3fcl6MU/s320/Keys.jpg" alt="" id="BLOGGER_PHOTO_ID_5219226152911296690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-3364401415384556872?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/3364401415384556872/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/05/shortage-of-ees.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3364401415384556872'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/3364401415384556872'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/05/shortage-of-ees.html' title='A Shortage of ees'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_B2ziGmloEkI/SG5qiI602LI/AAAAAAAAABg/effe3fcl6MU/s72-c/Keys.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-26971685395005286</id><published>2008-03-11T16:37:00.000-07:00</published><updated>2008-07-04T11:24:42.986-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='puns'/><title type='text'>Origami</title><content type='html'>&lt;div class="bvMsg" id="msgcns!3D8B4A2BFACE07DE!133"&gt; &lt;div&gt;Nate tells me that he used to go to an origami class before the school  folded.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-26971685395005286?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/26971685395005286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/03/origami.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/26971685395005286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/26971685395005286'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/03/origami.html' title='Origami'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-489434480919284103</id><published>2008-02-23T10:10:00.000-08:00</published><updated>2008-07-04T11:19:15.962-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><category scheme='http://www.blogger.com/atom/ns#' term='puns'/><title type='text'>609.5</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Arial Rounded MT Bold;"&gt;From another conversation ...&lt;/span&gt;  &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial Rounded MT Bold;"&gt;"It reminds me of the handyman who caught  a fish shaped like the letter L. &lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="font-family:Arial Rounded MT Bold;"&gt;He, as it turns out, metacarple".&lt;/span&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-489434480919284103?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/489434480919284103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/02/6095.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/489434480919284103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/489434480919284103'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/02/6095.html' title='609.5'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-7185632140201989200</id><published>2008-02-23T09:22:00.000-08:00</published><updated>2008-07-04T11:18:01.114-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><title type='text'>#604</title><content type='html'>One of the 1.3 million returned results from a google search of PINK LEMONADE will get you this ...&lt;br /&gt;&lt;br /&gt;http://digg.com/videos/comedy/Horrific_Projectile_Vomit_Ensues_After_Drinking_Mysterious_Lemonade&lt;br /&gt;&lt;br /&gt;In the old days, a 20MB harddrives setup as a fileshare would get loaded up with junk after a couple of months. It would be horribly disorganized where you couldn't find anything. No one would clean it out because they were afraid they would lose something important. Someone would finally just get another drive. Then the same thing would happen again.&lt;br /&gt;&lt;br /&gt;Now its just more people messing it up. More harddrives. The internet should have some standards set that we all have to adhere to before it fills up with porn and puke.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-7185632140201989200?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='related' href='http://digg.com/videos/comedy/Horrific_Projectile_Vomit_Ensues_After_Drinking_Mysterious_Lemonade' title='#604'/><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/7185632140201989200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2008/02/604.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7185632140201989200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/7185632140201989200'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2008/02/604.html' title='#604'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-2125300910596791590</id><published>2007-12-02T04:47:00.000-08:00</published><updated>2008-07-04T11:09:51.388-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Less is more</title><content type='html'>&lt;div class="postText"&gt;               &lt;p&gt; This is the story of a man named Jed&lt;br /&gt;A poor programmer that had been hit in the head&lt;br /&gt;Then one day he did a  query for a home&lt;br /&gt;Did a top one and ended in Oklahom (a) &lt;/p&gt; &lt;p&gt; Thing is, this guy correctly figured that for every address on a street, there was only one possible number. But there could be more than one person registered at a household and he really only wants one of them. So he does &lt;/p&gt; &lt;p style="font-family: courier new;"&gt; SELECT TOP 1  FROM Adresses WHERE Street = @a and Address = @b&lt;/p&gt; &lt;p&gt; Thing he forgot about was that there might possibly be a 123 Main Street in more than one city. In a different state.&lt;br /&gt;They're still digging themselves out of the huge data corruption that this created. &lt;/p&gt;    &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-2125300910596791590?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/2125300910596791590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/12/less-is-more.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2125300910596791590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/2125300910596791590'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/12/less-is-more.html' title='Less is more'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-6368454138024514353</id><published>2007-12-02T04:41:00.000-08:00</published><updated>2008-07-04T10:42:29.761-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Compatability'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>But but but</title><content type='html'>&lt;div class="postText"&gt;               &lt;p&gt; Another SQL 2000 failure that seems to be OK anywhere else you try it.  &lt;/p&gt; &lt;p&gt; &lt;span style="font-family: courier new;"&gt;-- Do something&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; GOGO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; -- Do other stuff  &lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style="font-family: courier new;"&gt; &lt;/span&gt;Why that isn't an error in 2005 is a little curious   &lt;/p&gt;    &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-6368454138024514353?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/6368454138024514353/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/12/but-but-but.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6368454138024514353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6368454138024514353'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/12/but-but-but.html' title='But but but'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-4238935560370244793</id><published>2007-11-16T03:21:00.000-08:00</published><updated>2008-07-04T10:40:55.648-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DDL'/><category scheme='http://www.blogger.com/atom/ns#' term='INFO'/><title type='text'>Wait a minute</title><content type='html'>&lt;div class="postText"&gt;               &lt;span style="font-size:85%;"&gt; &lt;p&gt; &lt;span style="font-size:85%;color:#0000ff;"&gt;OK, Check this out. There are no errors in 2005 or 2008 even with that comma dangling off the end ... &lt;/span&gt;  &lt;/p&gt; &lt;/span&gt; &lt;p&gt; &lt;span style="font-size:85%;color:#0000ff;"&gt;CREATE TABLE &lt;/span&gt;&lt;span style="font-size:85%;"&gt;[dbo].[AdvertiserSamCategory] (&lt;br /&gt;  [AdvertiserSAMID] [int] &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;IDENTITY &lt;/span&gt;&lt;span style="font-size:85%;"&gt;(1, 1) &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;NOT NULL &lt;/span&gt;&lt;span style="font-size:85%;"&gt;,&lt;br /&gt;  [AdvertiserID] [INT] &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;NOT NULL &lt;/span&gt;&lt;span style="font-size:85%;"&gt;,&lt;br /&gt;  [DomainLogin] [nvarchar] (50) &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;COLLATE &lt;/span&gt;&lt;span style="font-size:85%;"&gt;SQL_Latin1_General_CP1_CI_AS &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;NOT NULL &lt;/span&gt;&lt;span style="font-size:85%;"&gt;,&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;  [SamCategoryID] [INT] &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;NOT NULL &lt;/span&gt;&lt;span style="font-size:85%;"&gt;,&lt;br /&gt;) &lt;/span&gt;&lt;span style="font-size:85%;color:#0000ff;"&gt;ON &lt;/span&gt;&lt;span style="font-size:85%;"&gt;[PRIMARY]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;Guess you really don't need that definition    &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-4238935560370244793?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/4238935560370244793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/11/wait-minute.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4238935560370244793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4238935560370244793'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/11/wait-minute.html' title='Wait a minute'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-1708114733285181663</id><published>2007-11-12T01:49:00.001-08:00</published><updated>2008-12-18T14:39:34.636-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='INFO'/><title type='text'>Where am I</title><content type='html'>&lt;div class="postText"&gt;               &lt;p&gt; &lt;span style=";font-family:arial,helvetica,sans-serif;font-size:85%;"  &gt;Here is the Microsoft way to figure the version and servicepack levels&lt;/span&gt;  &lt;/p&gt; &lt;p&gt; &lt;span style=";font-family:courier new,courier;font-size:85%;"  &gt; Declare @V varchar(10), @sp varchar(5), @ed varchar(32), @nm varchar(32)&lt;br /&gt;SELECT @v=convert(varchar(10),SERVERPROPERTY('productversion'))&lt;br /&gt;,@sp=convert(varchar(5),SERVERPROPERTY ('productlevel'))&lt;br /&gt;,@ed=convert(varchar(32),SERVERPROPERTY ('edition'))&lt;br /&gt;,@nm=convert(varchar(32),@@servername)&lt;br /&gt;Print 'SERVER:' + @nm&lt;br /&gt;Print 'Version ' + @v&lt;br /&gt;Print 'Level   ' + @sp&lt;br /&gt;Print @ed&lt;/span&gt;  &lt;/p&gt; &lt;span style="font-size:78%;"&gt; &lt;p&gt;  &lt;/p&gt; &lt;p&gt; &lt;span style=";font-family:arial,helvetica,sans-serif;font-size:85%;"  &gt;My local 2008 server for example produces the following:  &lt;/span&gt; &lt;/p&gt; &lt;p&gt; &lt;span style="font-size:85%;"&gt;SERVER:WEB-TESTMULE&lt;br /&gt;Version 10.0.1049.                     &lt;====Note the extra period! Level CTP Developer Edition&lt;/span&gt;  &lt;/p&gt; &lt;p style="font-family: courier new;"&gt;   &lt;/p&gt; &lt;/span&gt;    &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-1708114733285181663?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/1708114733285181663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/11/where-am-i.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/1708114733285181663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/1708114733285181663'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/11/where-am-i.html' title='Where am I'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-6338827089028488951</id><published>2007-11-12T01:49:00.000-08:00</published><updated>2008-07-04T10:36:05.467-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Compatability'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>What's in a name?</title><content type='html'>IN everything but SQL2000 this is not a problem. Seems in 2000, the tableName does not get&lt;br /&gt;an automatic name reference, such that the use of tableName.xxx results in a syntax error.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You must alias the table name even if it is the same name.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;       SELECT tableName.Col FROM tableName tableName    &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-6338827089028488951?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/6338827089028488951/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/11/whats-in-name.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6338827089028488951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/6338827089028488951'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/11/whats-in-name.html' title='What&apos;s in a name?'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-5457612251432740877</id><published>2007-11-12T01:45:00.000-08:00</published><updated>2008-07-04T10:34:49.137-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Compatability'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>What was that name again?</title><content type='html'>In SQL 2005 this is OK&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      SELECT      1&lt;br /&gt;      FROM sysobjects (nolock) o&lt;br /&gt;      JOIN syscolumns (nolock) c ON o.id = c.id&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;But we build in SQL 2000 and it must be like this&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;       SELECT      1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;       FROM sysobjects o (nolock) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;       JOIN syscolumns c (nolock)  ON o.id = c.id&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So unless you alias the table before the hint, you will get a syntax error in some cases.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      &lt;span style="font-family: courier new;"&gt;Incorrect syntax near 'o'.    &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-5457612251432740877?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/5457612251432740877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/11/what-was-that-name-again.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5457612251432740877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/5457612251432740877'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/11/what-was-that-name-again.html' title='What was that name again?'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-8070236948984853715</id><published>2007-10-26T10:00:00.000-07:00</published><updated>2008-07-04T11:14:35.250-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Random Synapse'/><title type='text'>#27</title><content type='html'>Misfits converge. &lt;br /&gt; &lt;br /&gt;... think about it ...&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-8070236948984853715?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/8070236948984853715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/10/27.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8070236948984853715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8070236948984853715'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/10/27.html' title='#27'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-8357137677156364158</id><published>2007-10-08T09:07:00.000-07:00</published><updated>2009-08-06T06:52:13.171-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Compatability'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>GO speedracer GO</title><content type='html'>&lt;span style="font-family:courier new;"&gt; PRINT 'Here is a test'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; /*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; Here is a place for a comment to &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; GO&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt; */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The commented GO statement within the /* */ still executes and as such will cause a syntax error. This is corrected in 2005 servers but you will have to watch out for it on current boxes.&lt;br /&gt;&lt;br /&gt;Update August fifthe 2009&lt;br /&gt;We got hit by this again so I did some further experiments. Turns out it is related to the OSQL/ISQLW/ISQL installed and not the server. You can run this same script from a machine with the 2005 tools installed and point to the 2000 server and there is no error.&lt;br /&gt;&lt;br /&gt;Point is then, when you are testing for compatibility of your scripts, don't run it from the 2005 management studio. You will get a false positive.&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-8357137677156364158?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/8357137677156364158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/10/go-speedracer-go.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8357137677156364158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8357137677156364158'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/10/go-speedracer-go.html' title='GO speedracer GO'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-4663803659124837692</id><published>2007-09-12T01:43:00.000-07:00</published><updated>2008-07-04T10:31:23.611-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><category scheme='http://www.blogger.com/atom/ns#' term='Compatability'/><category scheme='http://www.blogger.com/atom/ns#' term='DONT'/><title type='text'>Do AS I say</title><content type='html'>Try this on a SQL 7 or 2000 box&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;     &lt;span style="font-family:courier new;"&gt;DECLARE @Fred AS TABLE (ID INT)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and what you will get is a syntax error. Another oddity that works fine once you move to SQL 2005 but that little AS in the declaration is a syntax error anywhere else. Seems most people do not run into this little gem because the AS is not required, and why would you type it if its not needed? That would be like using a LET assignment keyword :(&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-4663803659124837692?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/4663803659124837692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/09/do-as-i-say.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4663803659124837692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/4663803659124837692'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/09/do-as-i-say.html' title='Do AS I say'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6998389186688540891.post-8599051504301948834</id><published>2007-08-11T15:11:00.000-07:00</published><updated>2008-07-04T10:30:17.331-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DUCT HAT'/><category scheme='http://www.blogger.com/atom/ns#' term='TSQL'/><title type='text'>Where are you going with that?</title><content type='html'>&lt;div class="postText"&gt;               &lt;p&gt; This is the where clause I found when fixing a procedure one day...  &lt;/p&gt; &lt;p&gt;   &lt;span style="font-family:courier new;"&gt;FROM Rotation SR LEFT JOIN Break_Type BT ON  BT.BT_ID = SR.BT_ID,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     (select bandklocka, sp_id from Spot) S,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     spot cg&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     where sr.rotationid = @CopyGroupRef   &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     and sr.rotationid = cg.bandklocka&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     and s.bandklocka = sr.spotid&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;     and sr.spotid = s.bandklocka          &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ORDER BY SR.STARTDATE    &lt;/span&gt;&lt;/p&gt; &lt;p&gt; Now you may not know what a Bandklocka is, but I bet you can see &lt;em&gt;what&lt;/em&gt; is off with its usage here.  &lt;/p&gt;    &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;(c)StinkySQL&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6998389186688540891-8599051504301948834?l=stinkysql.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://stinkysql.blogspot.com/feeds/8599051504301948834/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://stinkysql.blogspot.com/2007/08/where-are-you-going-with-that.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8599051504301948834'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6998389186688540891/posts/default/8599051504301948834'/><link rel='alternate' type='text/html' href='http://stinkysql.blogspot.com/2007/08/where-are-you-going-with-that.html' title='Where are you going with that?'/><author><name>StinkySQL</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
